summaryrefslogtreecommitdiff
path: root/helpers/lh_genrootfs
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_genrootfs')
-rwxr-xr-xhelpers/lh_genrootfs7
1 files changed, 6 insertions, 1 deletions
diff --git a/helpers/lh_genrootfs b/helpers/lh_genrootfs
index 9ba4b31..5853ed2 100755
--- a/helpers/lh_genrootfs
+++ b/helpers/lh_genrootfs
@@ -47,7 +47,12 @@ case "${LIVE_FILESYSTEM}" in
rm "${LIVE_ROOT}"/binary/casper/filesystem.squashfs
fi
- mksquashfs "${LIVE_CHROOT}" "${LIVE_ROOT}"/binary/casper/filesystem.squashfs
+ if [ "${LIVE_FLAVOUR}" = "minimal" ] || [ "${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-*
+ else
+ mksquashfs "${LIVE_CHROOT}" "${LIVE_ROOT}"/binary/casper/filesystem.squashfs
+ fi
if [ -n "$LIVE_ENCRYPTION" ]
then