From 4afd25452f048a5a4e0608ec7b2f3dbbbe12da0f Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 3 Nov 2006 23:55:42 +0100 Subject: [PATCH] improve initramfs generation code --- chroot-script | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/chroot-script b/chroot-script index ea845d1..e6c95a7 100644 --- a/chroot-script +++ b/chroot-script @@ -134,13 +134,13 @@ KERNELVER=${KERNELIMG#/boot/vmlinuz-} if [ -n "$INITRD" ] ; then if [ "$RELEASE" = 'sarge' ] ; then echo "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 - GRUBINITRD="initrd /boot/initrd.img-$KERNELVER" - LILOINITRD=" initrd=/boot/initrd.img-$KERNELVER" + else + echo "Generating initrd." + update-initramfs -c -t -k $KERNELVER + if [ -f "/boot/initrd.img-$KERNELVER" ] ; then + GRUBINITRD="initrd /boot/initrd.img-$KERNELVER" + LILOINITRD=" initrd=/boot/initrd.img-$KERNELVER" + fi fi fi -- 2.1.4