summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2011-10-19 18:49:39 +0200
committerTails developers <amnesia@boum.org>2011-10-19 19:45:04 +0200
commitb05bb37511155b71d94dacfe72e1e9f929883adc (patch)
tree948a9282fd3ba6fd990bd77a15e6fe59e362655f
parentc081b0ccab407403984ed426f1d18695608f8659 (diff)
Exclude kernel and initramfs from being put into the SquashFS.
Those files are already shipped where they are needed, that is in the ISO filesystem.
-rwxr-xr-xauto/build1
-rw-r--r--config/chroot_local-includes/usr/share/amnesia/build/mksquashfs-excludes3
2 files changed, 4 insertions, 0 deletions
diff --git a/auto/build b/auto/build
index 1bfc8bd..021d3f5 100755
--- a/auto/build
+++ b/auto/build
@@ -49,6 +49,7 @@ chmod -R go+rX config/chroot_sources
# build the image
: ${MKSQUASHFS_OPTIONS:='-comp xz'}
+MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -wildcards -ef chroot/usr/share/amnesia/build/mksquashfs-excludes"
export MKSQUASHFS_OPTIONS
case "$LB_BINARY_IMAGES" in
diff --git a/config/chroot_local-includes/usr/share/amnesia/build/mksquashfs-excludes b/config/chroot_local-includes/usr/share/amnesia/build/mksquashfs-excludes
new file mode 100644
index 0000000..14bf4e9
--- /dev/null
+++ b/config/chroot_local-includes/usr/share/amnesia/build/mksquashfs-excludes
@@ -0,0 +1,3 @@
+boot/initrd.img-*
+boot/vmlinux-*
+boot/vmlinuz-*