X-Git-Url: http://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fhooks%2Fupdatebase.GRMLBASE;h=063cae487aeae7a847870612430f5706672813c2;hp=e1633b36ef57d1c336c436de73424931ce64b51a;hb=51fbcc7c7595303dd703d13d18ccab018ec617bf;hpb=2203377a037512efaf959d67c5abf800a8cfe6bc diff --git a/etc/grml/fai/config/hooks/updatebase.GRMLBASE b/etc/grml/fai/config/hooks/updatebase.GRMLBASE index e1633b3..063cae4 100755 --- a/etc/grml/fai/config/hooks/updatebase.GRMLBASE +++ b/etc/grml/fai/config/hooks/updatebase.GRMLBASE @@ -67,10 +67,16 @@ if ! [ -e ${target}/etc/udev/kernel-upgrade ] ; then fi # install all apt related files -fcopy -B -v -r /etc/apt +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 update + $ROOTCMD apt-get -y install aptitude +fi + ## END OF FILE ################################################################# # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2