X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=grml-live;h=ec9f8472e883c2b49aef7a887d2e563d39315385;hb=a1205bfa98b810f51f2691af54b46c3dba9cbd4c;hp=1afacbd9eb711955b1c16052675bd43f96263a38;hpb=dc414881cc395cc454d2db66b5adb94364b8aa49;p=grml-live.git diff --git a/grml-live b/grml-live index 1afacbd..ec9f847 100755 --- a/grml-live +++ b/grml-live @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Sat Feb 23 11:12:27 CET 2008 [mika] +# Latest change: Mon May 12 19:13:48 CEST 2008 [mika] ################################################################################ # read configuration files, set some misc variables {{{ @@ -15,7 +15,7 @@ export LC_ALL=C # exit on any error: set -e -GRML_LIVE_VERSION='0.6' +GRML_LIVE_VERSION='0.8' CMDLINE="$0 $@" ISO_DATE="$(date +%Y-%m-%d)" @@ -565,14 +565,20 @@ else # make sure we don't leave (even an empty) base.tgz: [ -f "$CHROOT_OUTPUT/base.tgz" ] && rm -f "$CHROOT_OUTPUT/base.tgz" + # make sure mksquashfs can handle the according option: + if [ -n "$SQUASHFS_ZLIB" ] ; then + mksquashfs --help 2>&1 | grep -q -- "$SQUASHFS_ZLIB" || SQUASHFS_ZLIB='' + fi + # execute squashfs: if mksquashfs --help 2>&1 | grep -q -- -no-progress ; then - log "mksquashfs $CHROOT_OUTPUT/* $BUILD_OUTPUT/live/${GRML_NAME}.squashfs -noappend -no-progress" + log "mksquashfs $CHROOT_OUTPUT/* $BUILD_OUTPUT/live/${GRML_NAME}.squashfs -noappend -no-progress $SQUASHFS_OPTIONS $SQUASHFS_ZLIB" mksquashfs $CHROOT_OUTPUT/* $BUILD_OUTPUT/live/"${GRML_NAME}".squashfs -noappend -no-progress $SQUASHFS_OPTIONS $SQUASHFS_ZLIB else - log "mksquashfs $CHROOT_OUTPUT/* $BUILD_OUTPUT/live/${GRML_NAME}.squashfs -noappend" + log "mksquashfs $CHROOT_OUTPUT/* $BUILD_OUTPUT/live/${GRML_NAME}.squashfs -noappend $SQUASHFS_OPTIONS $SQUASHFS_ZLIB" mksquashfs $CHROOT_OUTPUT/* $BUILD_OUTPUT/live/"${GRML_NAME}".squashfs -noappend $SQUASHFS_OPTIONS $SQUASHFS_ZLIB fi + echo "${GRML_NAME}.squashfs" > $BUILD_OUTPUT/live/filesystem.module log "Finished execution of stage 'squashfs' [$(date)]" einfo "Finished execution of stage 'squashfs'" ; eend 0