From a6f58a0d9badd6e771ba16162286b06be5839d9c Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 29 Sep 2008 13:58:40 +0200 Subject: [PATCH] Remove kernel and initrd only when building RELEASE --- grml-live | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.1.4