X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=7192cdc81ce12a63dbc22325be7127ab09be7ace;hp=4142beb598fd8ea9ad93916d2a95cd6a7f804a7a;hb=775fbc83a9e586051234a8698bdd15e984d2c351;hpb=e83c790d7989f0671b16c94ddfe5c2f32ea90576 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