There seems to be a change in Debian (jessie) causing aptitude to
no longer be present in debootstrapped systems by default any
longer. By setting $FAI_DEBOOTSTRAP_OPTS accordingly we include
it in its default package selection though. If it still shouldn't
be present we explicitely try to install it through the
updatebase.GRMLBASE hook script.
# install Grml gpg key:
$ROOTCMD apt-key add /etc/apt/grml.key
# 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
## END OF FILE #################################################################
# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2
fi
if [ -z "$FAI_DEBOOTSTRAP_OPTS" ] ; then
fi
if [ -z "$FAI_DEBOOTSTRAP_OPTS" ] ; then
- FAI_DEBOOTSTRAP_OPTS="--exclude=info,tasksel,tasksel-data --arch $ARCH"
+ FAI_DEBOOTSTRAP_OPTS="--exclude=info,tasksel,tasksel-data --include=aptitude --arch $ARCH"
fi
# create backup of old (not yet automatically generated) config file
fi
# create backup of old (not yet automatically generated) config file