From: Michael Prokop Date: Sun, 16 Dec 2007 18:37:46 +0000 (+0100) Subject: Install aptitude in softupdate if not present X-Git-Tag: 0.0.13~9 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=f1f52ba9ab0ba374405ab6a4ec7c586202f208e6 Install aptitude in softupdate if not present --- diff --git a/debian/changelog b/debian/changelog index bdfae65..3e8291d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,7 @@ grml-live (0.0.13) unstable; urgency=low /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 diff --git a/etc/grml/fai/config/hooks/instsoft.GRMLBASE b/etc/grml/fai/config/hooks/instsoft.GRMLBASE index b5ac237..715888c 100755 --- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE +++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE @@ -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 diff --git a/etc/grml/fai/config/scripts/GRMLBASE/10-build-initramfs b/etc/grml/fai/config/scripts/GRMLBASE/10-build-initramfs index 62f15f5..98ea666 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/10-build-initramfs +++ b/etc/grml/fai/config/scripts/GRMLBASE/10-build-initramfs @@ -26,7 +26,7 @@ if [ -z "$KERNELVERSION" ] ; then 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