From 8e73764ca7533f8250a1611756c13c54c7059da1 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 29 Sep 2008 13:36:58 +0200 Subject: [PATCH] Drop initrd and kernel from /boot when building grml-small --- grml-live | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/grml-live b/grml-live index 2d0d1f9..2694a25 100755 --- a/grml-live +++ b/grml-live @@ -428,8 +428,16 @@ else echo "$GRML_NAME $VERSION Release Codename $RELEASENAME [$ISO_DATE]" > $CHROOT_OUTPUT/etc/grml_version chmod 644 $CHROOT_OUTPUT/etc/grml_version einfo "Rebuilding initramfs" - chroot $CHROOT_OUTPUT update-initramfs -u -t # make sure new /etc/grml_version reaches the initramfs + # 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 + einfo "Removing initrd and vmlinuz files in $CHROOT_OUTPUT/boot" + rm -f "$CHROOT_OUTPUT"/boot/initrd.img-* + rm -f "$CHROOT_OUTPUT"/boot/vmlinuz-* + eend $? + fi fi # Remove all FAI logs from chroot if class RELEASE is used: -- 2.1.4