From 91e9fb27abd062d995110c8e03bfd1e60c6813c4 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sun, 10 Jul 2011 15:54:59 +0200 Subject: [PATCH] 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. --- etc/grml/fai/config/hooks/instsoft.GRMLBASE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.1.4