Use -y for upgrade in instsoft.GRMLBASE
authorMichael Prokop <mika@grml.org>
Mon, 5 Nov 2007 09:32:39 +0000 (10:32 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 5 Nov 2007 09:32:39 +0000 (10:32 +0100)
etc/grml/fai/config/hooks/instsoft.GRMLBASE

index 1e5ce06..2a00b39 100755 (executable)
@@ -44,12 +44,12 @@ if [ "$FAI_ACTION" = "softupdate" ] ; then
    $ROOTCMD apt-get update
    if [ -x $target/usr/bin/aptitude ] ; then
       if strings $target/usr/bin/aptitude | grep safe-upgrade 1>/dev/null ; then
-         $ROOTCMD aptitude safe-upgrade
+         $ROOTCMD aptitude -y safe-upgrade
       else
-         $ROOTCMD aptitude upgrade
+         $ROOTCMD aptitude -y upgrade
       fi
    else
-      $ROOTCMD apt-get upgrade
+      $ROOTCMD apt-get -y upgrade
    fi
 
 else # no softupdate but fresh installation