X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=grml-live;h=f432721888a43fcab130002095b49b3f6809d374;hb=6f2c3e2b2bf2919afe17106c973544d1fd8cf4db;hp=c3d5de08650aad3e2a229535eec342d3d1522bc1;hpb=635735aa55c2f8fc15c7ac528b4189a26be36b6f;p=grml-live.git diff --git a/grml-live b/grml-live index c3d5de0..f432721 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: Mon May 12 19:13:48 CEST 2008 [mika] +# Latest change: Sun Aug 17 13:19:16 CEST 2008 [mika] ################################################################################ # read configuration files, set some misc variables {{{ @@ -15,10 +15,48 @@ export LC_ALL=C # exit on any error: set -e -GRML_LIVE_VERSION='0.8' +GRML_LIVE_VERSION='0.9' +PN="$(basename $0)" CMDLINE="$0 $@" ISO_DATE="$(date +%Y-%m-%d)" +# usage information {{{ +usage() +{ + echo " +$PN - build process script for generating a (grml based) Linux Live-ISO + +Usage: $PN [-a ] [-c ] [-g ] \\ + [-i ] [-o ] [-s ] \\ + [-t ] [-s ] \\ + [-v ] [-bFVhu] + +Usage examples: + + $PN + $PN -c GRMLBASE,GRML_SMALL,I386 -o /grml/ + $PN -c GRMLBASE,GRML_MEDIUM,I386 -o /dev/shm/grml + $PN -c GRMLBASE,GRML_SMALL,I386 -g grml-small -v 1.0 + $PN -c GRMLBASE,GRML_FULL,I386 -i grml_0.0-1.iso -v 0.0-1 + $PN -c GRMLBASE,GRML_FULL,I386 -s sid -V -r 'grml-live rocks' + +More details: man grml-live + /usr/share/doc/grml-live/grml-live.html + +Please send your bug reports, feedback,.. to the grml-team. +http://grml.org/bugs/ +" +} + +# make sure it's possible to get usage information without being +# root or actually executing the script +if [ "$1" = '-h' -o "$1" = '--help' ] ; then + usage + [ "$(id -u 2>/dev/null)" != 0 ] && echo "Please notice that this script requires root permissions." + exit 0 +fi +# }}} + # we need root permissions for the build-process: if [ "$(id -u 2>/dev/null)" != 0 ] ; then echo "Error: please run this script with uid 0 (root)." >&2 @@ -58,7 +96,6 @@ fi LIVE_CONF=/etc/grml/grml-live.conf . $LIVE_CONF -PN=$(basename $0) # }}} # clean exit {{{ @@ -148,35 +185,6 @@ extend_string_end() { } # }}} -# usage information {{{ -usage() -{ - echo " -$PN - build process script for generating a (grml based) Linux Live-ISO - -Usage: $PN [-a ] [-c ] [-g ] \\ - [-i ] [-o ] [-s ] \\ - [-t ] [-s ] \\ - [-v ] [-bFVhu] - -Usage examples: - - $PN - $PN -c GRMLBASE,GRML_SMALL,I386 -o /grml/ - $PN -c GRMLBASE,GRML_MEDIUM,I386 -o /dev/shm/grml - $PN -c GRMLBASE,GRML_SMALL,I386 -g grml-small -v 1.0 - $PN -c GRMLBASE,GRML_FULL,I386 -i grml_0.0-1.iso -v 0.0-1 - $PN -c GRMLBASE,GRML_FULL,I386 -s sid -V -r 'grml-live rocks' - -More details: man grml-live - /usr/share/doc/grml-live/grml-live.html - -Please send your bug reports, feedback,.. to the grml-team. -http://grml.org/bugs/ -" -} -# }}} - # read local (non-packaged) configuration {{{ LOCAL_CONFIG=/etc/grml/grml-live.local if [ -r "$LOCAL_CONFIG" ] ; then @@ -268,8 +276,9 @@ if [ -z "$FORCE" ] ; then [ -n "$TEMPLATE_DIRECTORY" ] && echo " Template files: $TEMPLATE_DIRECTORY" [ -n "$FAI_ARGS" ] && echo " additional arguments for FAI: $FAI_ARGS" [ -n "$LOGFILE" ] && echo " Logging to file: $LOGFILE" - [ -n "$VERBOSE" ] && echo " Using VERBOSE mode." [ -n "$SQUASHFS_ZLIB" ] && echo " Using ZLIB (instead of LZMA) compression." + [ -n "$SQUASHFS_OPTIONS" ] && echo " Using SQUASHFS_OPTIONS ${SQUASHFS_OPTIONS}" + [ -n "$VERBOSE" ] && echo " Using VERBOSE mode." [ -n "$UPDATE" ] && echo " Executing UPDATE instead of fresh installation." [ -n "$BUILD_ONLY" ] && echo " Executing BUILD_ONLY instead of fresh installation or UPDATE." echo