Install aptitude in softupdate if not present
[grml-live.git] / etc / grml / fai / config / hooks / instsoft.GRMLBASE
index b5ac237..715888c 100755 (executable)
@@ -69,6 +69,10 @@ EOF
    # run it on our own, as updatebase is used at the wrong stage for our needs,
    # see /etc/grml/fai/config/hooks/updatebase.GRMLBASE
    $ROOTCMD apt-get update
+   if ! [ -x $target/usr/bin/aptitude ] ; then
+      $ROOTCMD apt-get -y install aptitude
+   fi
+
    if [ -x $target/usr/bin/aptitude ] ; then
       if $ROOTCMD aptitude --help | grep -q safe-upgrade ; then
          $ROOTCMD aptitude -y safe-upgrade