diff options
author | Daniel Baumann <daniel@debian.org> | 2011-06-03 00:21:07 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-06-03 00:38:09 +0200 |
commit | b8eff5a2f2720dcf8aca9e5c681c32c64207a719 (patch) | |
tree | 2dd2c86296d47b53e5ed73671ae0e4ebe54516f4 /scripts/build/lb_binary_rootfs | |
parent | 3cd5375fbd5c53d752a60e1106a9e775969ee326 (diff) | |
download | vyos-live-build-b8eff5a2f2720dcf8aca9e5c681c32c64207a719.tar.gz vyos-live-build-b8eff5a2f2720dcf8aca9e5c681c32c64207a719.zip |
Restoring excludes functionality for mksquashfs. This was present some time ago but then got removed.
Diffstat (limited to 'scripts/build/lb_binary_rootfs')
-rwxr-xr-x | scripts/build/lb_binary_rootfs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/build/lb_binary_rootfs b/scripts/build/lb_binary_rootfs index 2e3e34e3f..52204d4ac 100755 --- a/scripts/build/lb_binary_rootfs +++ b/scripts/build/lb_binary_rootfs @@ -323,9 +323,18 @@ case "${LB_CHROOT_FILESYSTEM}" in case "${LB_BUILD_WITH_CHROOT}" in true) + if [ -e config/binary_rootfs/excludes ] + then + cp config/binary_rootfs/excludes chroot/excludes + + MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -ef /excludes" + fi + # Create image Chroot chroot "mksquashfs chroot filesystem.squashfs ${MKSQUASHFS_OPTIONS}" + rm -f chroot/chroot/excludes + case "${LB_MODE}" in ubuntu) du -B 1 -s chroot/chroot | cut -f1 > binary/${INITFS}/filesystem.size @@ -384,6 +393,11 @@ case "${LB_CHROOT_FILESYSTEM}" in ;; false) + if [ -e config/binary_rootfs/excludes ] + then + MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -ef config/binary_rootfs/excludes" + fi + mksquashfs chroot binary/${INITFS}/filesystem.squashfs ${MKSQUASHFS_OPTIONS} case "${LB_MODE}" in |