X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=e6c95a787624b1e59fff16569e6aef39380a8e96;hp=ea845d142c0c112074d8391d9be4dba9def64944;hb=4afd25452f048a5a4e0608ec7b2f3dbbbe12da0f;hpb=687068e816c608239edf287210beb1d73f08efda 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