mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-28 14:01:43 +01:00
version_hooks: integrate upgrade hooks into chroot updater
BUG=chromium-os:6151 TEST=run update_chroot Change-Id: I1fee2428247eb3dd1a3133d5781d4e5b6d5bdeb9 Reviewed-on: http://gerrit.chromium.org/gerrit/903 Reviewed-by: David James <davidjames@chromium.org> Tested-by: Zdenek Behan <zbehan@chromium.org>
This commit is contained in:
parent
aceca1c085
commit
308e9fd4c4
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user