X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fhooks%2Finstsoft.GRMLBASE;h=2a00b399e00e1d19bd74ce0497db5b3d1549d492;hb=c9ee548696ef382dfebe67ccb0702f7798ff7035;hp=1b97e9ba2d7f17c68002f491ca237248838c51b0;hpb=14e56253bc02d4b362856a282915d03737441963;p=grml-live-grml.git diff --git a/etc/grml/fai/config/hooks/instsoft.GRMLBASE b/etc/grml/fai/config/hooks/instsoft.GRMLBASE index 1b97e9b..2a00b39 100755 --- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE +++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE @@ -43,13 +43,13 @@ if [ "$FAI_ACTION" = "softupdate" ] ; then # FAI softupdate does not execute upgrade, so let's do it on our own: $ROOTCMD apt-get update if [ -x $target/usr/bin/aptitude ] ; then - if $target/usr/bin/aptitude --help | grep safe-upgrade ; then - $ROOTCMD aptitude safe-upgrade + if strings $target/usr/bin/aptitude | grep safe-upgrade 1>/dev/null ; then + $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