/etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs
* Disable Recommends for aptitude as well.
* Check for presence of live-initramfs in 10-build-initramfs.
+ * Install aptitude in softupdate if not present.
* Do some further cleanups via /etc/grml/fai/grml/grml_cleanup_chroot.deborphan
* Remove hwtools from GRML_FULL, see #397723
* Remove several packages from GRMLBASE and integrate them in GRML_MEDIUM
# 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
exit 1
fi
-if [ -f /usr/share/initramfs-tools/scripts/live ] ; then
+if [ -f $target/usr/share/initramfs-tools/scripts/live ] ; then
$ROOTCMD update-initramfs -c -t -k $KERNELVERSION
else
echo "Error: live-initramfs does not seem to be present, can not create initramfs. Exiting.">&2