X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fhooks%2Finstsoft.GRMLBASE;h=1e5ce06442cdfe47d1b92d60dac57e77ba42e3aa;hp=1b97e9ba2d7f17c68002f491ca237248838c51b0;hb=7fa9c329d85bf44b690aa7457597e3acee0633de;hpb=0c469a66c1d77ef2aff158145bb3ccec02dc361a diff --git a/etc/grml/fai/config/hooks/instsoft.GRMLBASE b/etc/grml/fai/config/hooks/instsoft.GRMLBASE index 1b97e9b..1e5ce06 100755 --- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE +++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE @@ -43,7 +43,7 @@ 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 + if strings $target/usr/bin/aptitude | grep safe-upgrade 1>/dev/null ; then $ROOTCMD aptitude safe-upgrade else $ROOTCMD aptitude upgrade