mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-30 23:11:40 +01:00
fix(catalyst): Recreate portage snapshot with --rebuild
This commit is contained in:
parent
d0e9240747
commit
a1026792aa
@ -250,11 +250,13 @@ build_stage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
build_snapshot() {
|
build_snapshot() {
|
||||||
if [[ -f "$CATALYST_ROOT/snapshots/portage-${FLAGS_version}.tar.bz2" ]]
|
local snapshot="portage-${FLAGS_version}.tar.bz2"
|
||||||
|
local snapshot_path="$CATALYST_ROOT/snapshots/${snapshot}"
|
||||||
|
if [[ -f "${snapshot_path}" && $FLAGS_rebuild == $FLAGS_FALSE ]]
|
||||||
then
|
then
|
||||||
info "Skipping snapshot, portage-${FLAGS_version}.tar.bz2 exists"
|
info "Skipping snapshot, ${snapshot_path} exists"
|
||||||
else
|
else
|
||||||
info "Creating snapshot portage-${FLAGS_version}.tar.bz2"
|
info "Creating snapshot ${snapshot_path}"
|
||||||
catalyst $DEBUG -c "$TEMPDIR/catalyst.conf" -s "$FLAGS_version"
|
catalyst $DEBUG -c "$TEMPDIR/catalyst.conf" -s "$FLAGS_version"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user