diff --git a/update_chroot b/update_chroot index a16de44b36..19bcd8cec6 100755 --- a/update_chroot +++ b/update_chroot @@ -14,6 +14,9 @@ # Script must run inside the chroot assert_inside_chroot "$@" +# Do not run as root +assert_not_root_user + # Flags DEFINE_boolean usepkg $FLAGS_TRUE \ "Use binary packages to bootstrap." @@ -29,6 +32,9 @@ eval set -- "${FLAGS_ARGV}" # so will die prematurely if 'set -e' is specified before now. set -e +# Run version hooks as pre-update +${SCRIPTS_DIR}/run_chroot_version_hooks + info "Updating chroot" EMERGE_FLAGS="-uDNv --with-bdeps=y"