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:
Jeremi Piotrowski 2021-08-24 15:03:14 +00:00
parent 344afd98f2
commit cd371dda9c

View File

@ -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"