Hello,

  I've actually made a small patch to handle file exclusions when
building root file system with mksquashfs. It's in live-helper package,
not live-initramfs as said before, in script live_binary_rootfs.
  It uses a new variable, MKSQUASHFS_EXCLUDES, to handle file names to
be excluded from squashfs image, to prevent '-e <files>' option to mess
with other mksquashfs options.
  Can you include it in a next release of live-helper ?

        Thanks,
                Fred Boiteux.
diff -Naur live-helper-1.0~a46/helpers/lh_binary_rootfs live-helper-1.0~a46mod/helpers/lh_binary_rootfs
--- live-helper-1.0~a46/helpers/lh_binary_rootfs	2008-04-27 01:21:54.000000000 +0200
+++ live-helper-1.0~a46mod/helpers/lh_binary_rootfs	2008-06-09 14:56:59.000000000 +0200
@@ -225,7 +225,7 @@
 
 		if [ "${LH_PACKAGES_LISTS}" = "stripped" ] || [ "${LH_PACKAGES_LISTS}" = "minimal" ]
 		then
-			MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -e $(ls chroot/boot/${LINUX}* chroot/boot/initrd.img* chroot/${LINUX}* chroot/initrd.img* | sed 's|chroot/||g')"
+			MKSQUASHFS_EXCLUDES="${MKSQUASHFS_EXCLUDES} $(ls chroot/boot/${LINUX}* chroot/boot/initrd.img* chroot/${LINUX}* chroot/initrd.img* | sed 's|chroot/||g')"
 		fi
 
 		if [ -f config/binary_rootfs/squashfs.sort ]
@@ -234,6 +234,10 @@
 			cp config/binary_rootfs/squashfs.sort chroot #FIXME
 		fi
 
+		if [ -n "${MKSQUASHFS_EXCLUDES}" ]; then
+			MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -e ${MKSQUASHFS_EXCLUDES}"
+		fi
+
 		case "${LH_CHROOT_BUILD}" in
 			enabled)
 				# Create image
_______________________________________________
debian-live-devel mailing list
debian-live-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel

Reply via email to