From: Michael Prokop Date: Fri, 5 Oct 2007 23:00:40 +0000 (+0200) Subject: move initrd instead of copying to save some MBs X-Git-Tag: 0.0.4~19 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=1945777212ed1fdc41eab54355574460ff1fad2b move initrd instead of copying to save some MBs --- 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/