move initrd instead of copying to save some MBs
authorMichael Prokop <devnull@localhost>
Fri, 5 Oct 2007 23:00:40 +0000 (01:00 +0200)
committerMichael Prokop <devnull@localhost>
Fri, 5 Oct 2007 23:00:40 +0000 (01:00 +0200)
debian/changelog
grml-live

index b66301f..acb89c5 100644 (file)
@@ -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 <mika@grml.org>  Thu, 04 Oct 2007 22:16:34 +0200
 
index 2c7abcf..871fbb9 100755 (executable)
--- 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/