From cd371dda9c02bd35debb97448e1c178bf27ad06b Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Tue, 24 Aug 2021 15:03:14 +0000 Subject: [PATCH] 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. --- update_chroot | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/update_chroot b/update_chroot index 13cb67e29b..653e48a03a 100755 --- a/update_chroot +++ b/update_chroot @@ -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"