From: Michael Prokop Date: Sun, 10 Jul 2011 13:54:59 +0000 (+0200) Subject: instsoft.GRMLBASE: Use --force-yes option when using apt-get for upgrade. X-Git-Tag: v0.15.1~23 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=91e9fb27abd062d995110c8e03bfd1e60c6813c4;hp=6d5124d02e3912ac0ca53c0f0af92ef9ebceae23 instsoft.GRMLBASE: Use --force-yes option when using apt-get for upgrade. For example when configuration files have been modified and user input is required then apt-get will fail and complain with: | E: There are problems and -y was used without --force-yes So let's force the action as we are in automated mode. --- diff --git a/etc/grml/fai/config/hooks/instsoft.GRMLBASE b/etc/grml/fai/config/hooks/instsoft.GRMLBASE index e5e6800..cf73040 100755 --- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE +++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE @@ -92,7 +92,7 @@ EOF APT_LISTCHANGES_FRONTEND=none APT_LISTBUGS_FRONTEND=none $ROOTCMD aptitude -y upgrade fi else - APT_LISTCHANGES_FRONTEND=none APT_LISTBUGS_FRONTEND=none $ROOTCMD apt-get -y upgrade + APT_LISTCHANGES_FRONTEND=none APT_LISTBUGS_FRONTEND=none $ROOTCMD apt-get -y --force-yes upgrade fi exit # make sure we don't continue behind the following "fi"