X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml-live;h=07c1bd8a7d9af7599e5399ec8af4d67afb946341;hb=9246389e0b2f78cdc65ba9b3ba76b038b79d51c6;hp=2694a25e37379c65d7b41dd290362f5aa59ef654;hpb=8e73764ca7533f8250a1611756c13c54c7059da1;p=grml-live.git diff --git a/grml-live b/grml-live index 2694a25..07c1bd8 100755 --- a/grml-live +++ b/grml-live @@ -431,12 +431,15 @@ else # make sure new /etc/grml_version reaches the initramfs: chroot $CHROOT_OUTPUT update-initramfs -u -t eend $? - # get rid of unnecessary files when building grml-small: - if echo "$CLASSES" | grep -q GRML_SMALL ; then + # get rid of unnecessary files when building grml-small for final release: + if echo "$CLASSES" | grep -q GRML_SMALL && \ + echo "$CLASSES" | grep -q RELEASE ; then einfo "Removing initrd and vmlinuz files in $CHROOT_OUTPUT/boot" rm -f "$CHROOT_OUTPUT"/boot/initrd.img-* rm -f "$CHROOT_OUTPUT"/boot/vmlinuz-* eend $? + ewarn "Notice: you have to rebuild grml-small from scratch on next run." + eend 0 fi fi