From 775fbc83a9e586051234a8698bdd15e984d2c351 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 3 Nov 2006 23:49:14 +0100 Subject: [PATCH] fix initrd stuff for sarge --- TODO | 1 + chroot-script | 4 ++++ config | 1 + 3 files changed, 6 insertions(+) diff --git a/TODO b/TODO index aa0b712..c89a0dc 100644 --- a/TODO +++ b/TODO @@ -5,6 +5,7 @@ TODO list for grml-debootstrap * support automatic installation of grml core packages * support bootoption debian2hd for installation through bootoption * support *full* automatic installation where not a single keypress is necessary +* should we support mkinitrd for initrd creation in sarge? Test matrix ----------- diff --git a/chroot-script b/chroot-script index 4142beb..7192cdc 100644 --- a/chroot-script +++ b/chroot-script @@ -131,6 +131,10 @@ KERNELVER=${KERNELIMG#/boot/vmlinuz-} # generate initrd if [ -n "$INITRD" ] ; then + if [ "$RELEASE" = 'sarge' ] ; then + einfo "Release sarge detected, will not create an initrd." + return 0 + fi echo "Generating initrd." update-initramfs -c -t -k $KERNELVER if [ -f "/boot/initrd.img-$KERNELVER" ] ; then diff --git a/config b/config index f710c54..ed85370 100644 --- a/config +++ b/config @@ -81,6 +81,7 @@ LOCALES='yes' TIMEZONE='Europe/Vienna' # generate initrd via update-initramfs? +# notice: won't do anything when release is sarge as update-initramfs does not exist there INITRD='yes' ## END OF FILE ################################################################# -- 2.1.4