Do our best to make sure aptitude is installed in chroot
[grml-live.git] / etc / grml / fai / config / hooks / updatebase.GRMLBASE
index b1c22e0..d19c4e2 100755 (executable)
@@ -72,5 +72,10 @@ fcopy -i -B -v -r /etc/apt
 # install Grml gpg key:
 $ROOTCMD apt-key add /etc/apt/grml.key
 
+if ! $ROOTCMD test -x /usr/bin/aptitude ; then
+  echo "aptitude binary is not available, installing to make sure further FAI actions continue to work"
+  $ROOTCMD apt-get -y install aptitude
+fi
+
 ## END OF FILE #################################################################
 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2