From 99fb742e5a903680777640d198dec0d6fbfd03cc Mon Sep 17 00:00:00 2001 From: Zdenek Behan Date: Mon, 17 Oct 2011 01:12:34 +0200 Subject: [PATCH] update_chroot: autodiscard all config updates * This is now safe to do, since the only protected files are exactly the ones that have been autogenerated during chroot creation and may not be overwritten. BUG=chromium-os:13987 TEST=update the chroot Change-Id: Ica4d8328b21089b23e2b0e8a29530cedddabc299 Reviewed-on: https://gerrit.chromium.org/gerrit/10166 Commit-Ready: Zdenek Behan Reviewed-by: Zdenek Behan Tested-by: Zdenek Behan --- update_chroot | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/update_chroot b/update_chroot index 99b04e8853..350155b211 100755 --- a/update_chroot +++ b/update_chroot @@ -83,6 +83,11 @@ EMERGE_FLAGS+=" --deep" eretry sudo -E ${EMERGE_CMD} ${EMERGE_FLAGS} \ chromeos-base/hard-host-depends world +# Automatically discard all CONFIG_PROTECT'ed files. Those that are +# protected should not be overwritten until the variable is changed. +# Autodiscard is option "-9" followed by the "YES" confirmation. +printf '%s\nYES\n' -9 | sudo etc-update + # If the user still has old perl modules installed, update them. PERL_VERSIONS=$(find /usr/lib*/perl5/vendor_perl/ -maxdepth 1 -mindepth 1 \ -type d -printf '%P\n' | sort -u | wc -w)