From 1945777212ed1fdc41eab54355574460ff1fad2b Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 6 Oct 2007 01:00:40 +0200 Subject: [PATCH] move initrd instead of copying to save some MBs --- debian/changelog | 2 ++ grml-live | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index b66301f..acb89c5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,8 @@ grml-live (0.0.4) unstable; urgency=low - disable pipeline workaround - create /dev/MAKEDEV in chroot to work around the "./MAKEDEV: No such file or directory" problem of some packages + * Do not copy the initrd of chroot to boot/isolinux/ but instead move + it to save a few more MBs of space. -- Michael Prokop Thu, 04 Oct 2007 22:16:34 +0200 diff --git a/grml-live b/grml-live index 2c7abcf..871fbb9 100755 --- a/grml-live +++ b/grml-live @@ -301,7 +301,8 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then # booting stuff: mkdir -p "$BUILD_TARGET"/boot/isolinux cp /boot/memtest86+.bin "$BUILD_TARGET"/boot/isolinux/memtest - cp "$CHROOT_TARGET"/boot/initrd* "$BUILD_TARGET"/boot/isolinux/initrd.gz + # do not keep the initrd inside the chroot, let's save space instead: + mv "$CHROOT_TARGET"/boot/initrd* "$BUILD_TARGET"/boot/isolinux/initrd.gz cp "$CHROOT_TARGET"/boot/vmlinuz* "$BUILD_TARGET"/boot/isolinux/linux26 cp /usr/lib/syslinux/chain.c32 "$BUILD_TARGET"/boot/isolinux/ cp /usr/lib/syslinux/isolinux.bin "$BUILD_TARGET"/boot/isolinux/ -- 2.1.4