X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=grml-live;h=df3481fd4c4de71c6ee68d5aa0afe2bd9cd37a0b;hp=7ed805c14686b82f0667dfb6f0a5d5ce58bd340e;hb=3d425a0150e27ea237590bff0d06623faa402bd6;hpb=a31f7f97af97e0ed0964b86f2c580aafc4922006 diff --git a/grml-live b/grml-live index 7ed805c..df3481f 100755 --- a/grml-live +++ b/grml-live @@ -23,7 +23,7 @@ fi set -e # global variables -GRML_LIVE_VERSION='0.9.22' +GRML_LIVE_VERSION='0.9.23' PN="$(basename $0)" CMDLINE="$0 $@" ISO_DATE="$(date +%Y-%m-%d)" @@ -44,7 +44,7 @@ Usage: $PN [options, see as follows] -c classes to be used for building the ISO via FAI -C configuration file for grml-live -F force execution without prompting - -g ] set the grml flavour name + -g set the grml flavour name -h display short usage information and exit -i name of ISO -I directory which provides files that should become @@ -52,7 +52,7 @@ Usage: $PN [options, see as follows] -n skip generation of ISO -o main output directory of the build process -q skip mksquashfs - -r release name -s Debian suite; values: etch, lenny, squeeze, sid -t place of the templates -u update existing chroot instead of rebuilding it from scratch @@ -256,7 +256,7 @@ shift $(($OPTIND - 1)) # set ARGV to the first not parsed commandline parameter [ -n "$OUTPUT" ] || OUTPUT='/grml/grml-live' [ -n "$RELEASENAME" ] || RELEASENAME='grml-live rocks' [ -n "$SQUASHFS_EXCLUDES_FILE " ] || SQUASHFS_EXCLUDES_FILE='/etc/grml/fai/squashfs-excludes' -[ -n "$SUITE" ] || SUITE='stable' +[ -n "$SUITE" ] || SUITE='lenny' [ -n "$TEMPLATE_DIRECTORY" ] || TEMPLATE_DIRECTORY='/usr/share/grml-live/templates' [ -n "$USERNAME" ] || USERNAME='grml' [ -n "$VERSION" ] || VERSION='0.0.1' @@ -561,8 +561,8 @@ else einfo "Finished execution of stage 'fai dirinstall'" fi - einfo "Find FAI build logs at $(readlink -f /var/log/fai/$HOSTNAME/last)." - log "Find FAI build logs at $(readlink -f /var/log/fai/$HOSTNAME/last)." + einfo "Find FAI build logs at $(readlink -f /var/log/fai/$HOSTNAME/last)" + log "Find FAI build logs at $(readlink -f /var/log/fai/$HOSTNAME/last)" eend 0 fi fi # BUILD_DIRTY? @@ -807,9 +807,10 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then md5sum ${file}.exe > ${file}.exe.md5 done ) fi + + log "Finished execution of stage 'WINDOWS_BINARIES' [$(date)]" + einfo "Finished execution of stage 'WINDOWS_BINARIES'" ; eend 0 fi - log "Finished execution of stage 'WINDOWS_BINARIES' [$(date)]" - einfo "Finished execution of stage 'WINDOWS_BINARIES'" ; eend 0 fi FORCE_ISO_REBUILD=true @@ -888,6 +889,10 @@ else ;; esac fi + + # if we still want to use mksquashfs-lzma then let's choose + # blocksize 256k as this gives best result with regards to time + comopression + [[ "$SQUASHFS_BINARY" == "mksquashfs-lzma" ]] && SQUASHFS_OPTIONS="-b 256k -lzma" fi fi @@ -901,8 +906,8 @@ else # make sure to drop the -nolzma option if it's not available: if echo "$SQUASHFS_OPTIONS" | grep -q -- "-nolzma" ; then if ! $SQUASHFS_BINARY --help 2>&1 | grep -q -- '-nolzma' ; then - log "$SQUASHFS_BINARY does NOT support the nolzma option, dropping it and using default mode." - ewarn "$SQUASHFS_BINARY does NOT support the nolzma option, dropping it and using default mode." + log "The $SQUASHFS_BINARY binary does NOT support the nolzma option, dropping it and using default mode." + ewarn "The $SQUASHFS_BINARY binary does NOT support the nolzma option, dropping it and using default mode." SQUASHFS_OPTIONS="$(echo $SQUASHFS_OPTIONS | sed 's/-nolzma//g')" eend 0 fi @@ -911,8 +916,8 @@ else # make sure to drop the -lzma option if it's not available: if echo "$SQUASHFS_OPTIONS" | grep -q -- "-lzma" ; then if ! $SQUASHFS_BINARY --help 2>&1 | grep -q -- '-lzma' ; then - log "$SQUASHFS_BINARY does NOT support the lzma option, dropping it and using default mode." - ewarn "$SQUASHFS_BINARY does NOT support the lzma option, dropping it and using default mode." + log "The $SQUASHFS_BINARY binary does NOT support the lzma option, dropping it and using default mode." + ewarn "The $SQUASHFS_BINARY binary does NOT support the lzma option, dropping it and using default mode." SQUASHFS_OPTIONS="$(echo $SQUASHFS_OPTIONS | sed 's/-lzma//g')" eend 0 fi @@ -988,7 +993,7 @@ elif [ -n "$SKIP_MKISOFS" ] ; then else mkdir -p "$ISO_OUTPUT" || bailout 6 "Problem with creating $ISO_OUTPUT for stage 'iso build'" - if $FORCE_ISO_REBUILD ; then + if $FORCE_ISO_REBUILD && ! [ -f "${ISO_OUTPUT}/${ISO_NAME}" ] ; then log "Forcing rebuild of ISO because files on ISO have been modified." einfo "Forcing rebuild of ISO because files on ISO have been modified." fi