mirror of
https://github.com/flatcar/scripts.git
synced 2026-01-22 00:42:12 +01:00
update_chroot: don't try to run emerge if profile migration not done
I'm trying to switch the profile to 17.1 which gets rid of the lib->lib64 symlink. This breaks bootstrap if the SDK needs to be updated. Exit early from the update if profile is not migrated.
This commit is contained in:
parent
344afd98f2
commit
cd371dda9c
@ -202,6 +202,12 @@ fi
|
||||
EMERGE_FLAGS+=( "--jobs=${NUM_JOBS}" )
|
||||
REBUILD_FLAGS+=( "--jobs=${NUM_JOBS}" )
|
||||
|
||||
if [ "$(readlink -f /lib)" != "/lib" ]; then
|
||||
warn "Skipping update due to profile migration"
|
||||
command_completed
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Perform an update of coreos-devel/sdk-depends and world in the chroot.
|
||||
EMERGE_CMD="emerge"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user