Hello,

To save more space for the image, we are using mksquashfs -e to exclude
boot/ initrd.img and vmlinuz
I've attached a patch to lh_genrootfs that fixes the excluding (removed the
LIVE_CHROOT prefix)
With this patch minimal-net flavor also enjoys the excluding.
BTW, why not always exclude?

Hadar
--- /home/hadar/dev/original-lh/lh_genrootfs 
+++ /usr/sbin/lh_genrootfs 
@@ -47,9 +47,9 @@
 			rm "${LIVE_ROOT}"/binary/casper/filesystem.squashfs
 		fi
 
-		if [ "${LIVE_FLAVOUR}" = "minimal" ] || [ "${LIVE_FLAVOUR}" = "mini" ]
+		if [ "${LIVE_FLAVOUR}" = "minimal" ] || [ "${LIVE_FLAVOUR}" = "minimal-net" ] || [ "${LIVE_FLAVOUR}" = "mini" ]
 		then
-			mksquashfs "${LIVE_CHROOT}" "${LIVE_ROOT}"/binary/casper/filesystem.squashfs -e "${LIVE_CHROOT}"/boot/vmlinuz* "${LIVE_CHROOT}"/boot/initrd.img* "${LIVE_CHROOT}"/vmlinuz "${LIVE_CHROOT}"/initrd.img "${LIVE_CHROOT}"/boot/config-* "${LIVE_CHROOT}"/boot/System.map-*
+			mksquashfs "${LIVE_CHROOT}" "${LIVE_ROOT}"/binary/casper/filesystem.squashfs -e boot initrd.img* vmlinuz* 
 		else
 			mksquashfs "${LIVE_CHROOT}" "${LIVE_ROOT}"/binary/casper/filesystem.squashfs
 		fi
_______________________________________________
Debian-live-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel

Reply via email to