[PATCH] Exclude directories from squashfs filesystem
Hi,
Attached is a proposed patch for an option to exclude files or directories
from the squashfs root filesystem.
The motivation for this feature is to be able to create smaller ISO images.
For example, the following list of excludes makes the ISO about 7MB
smaller:
var/cache/apt
var/lib/apt
var/lib/dpkg
Removing these directories from the chroot does not work, since the chroot
is also used for installing tools and removing the administrative
directories of apt and dpkg breaks those installations. Excluding them when
running mksquashfs does not have that problem.
Some things I was unsure about:
- The added code block is modeled after the code block that handles the
squashfs.sort file. That code block has a #FIXME comment after the copy
statement. I don't know what should be fixed there, but there is a chance
my code has the same problem since it's very similar.
- Should this feature be tied to squashfs or should there be a generic way
of excluding files from the root filesystem? And if it should be generic,
is that something for the future or must it be dealt with right now?
Please review this patch and tell me whether it can be accepted as-is, with
modifications or not at all.
Bye,
Maarten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: squashfs-exclude.diff
Type: text/x-diff
Size: 686 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-live-devel/attachments/20071024/215a07cf/attachment.diff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/debian-live-devel/attachments/20071024/215a07cf/attachment.pgp
Reply to: