X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml-live;h=6c768059cd9738228350d0edf82381d6278f4635;hb=405d9e68c2acbda7236bae5f2d094a49d916f9ce;hp=970fa6bac975defcfe0077846b6580df03acebcb;hpb=51417bbf1d71d4eb84f3402c8308f62171d9a78d;p=grml-live.git diff --git a/grml-live b/grml-live index 970fa6b..6c76805 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 Nov 26 15:13:41 CET 2007 [mika] +# Latest change: Sun Dec 09 16:24:55 CET 2007 [mika] ################################################################################ # read configuration files, set some misc variables {{{ @@ -100,6 +100,8 @@ fi if [ -n "$ZERO_FAI_LOGFILE" ] ; then if [ -d /var/log/fai/"$HOSTNAME" ] ; then rm -rf /var/log/fai/"$HOSTNAME"/"$(readlink /var/log/fai/"$HOSTNAME"/last)" + rm -rf /var/log/fai/"$HOSTNAME"/"$(readlink /var/log/fai/"$HOSTNAME"/last-dirinstall)" + rm -rf /var/log/fai/"$HOSTNAME"/"$(readlink /var/log/fai/"$HOSTNAME"/last-softupdate)" fi fi @@ -221,14 +223,26 @@ specify it on the command line using the -c option." specify it on the command line using the -o option." # }}} +# read local (non-packaged) configuration {{{ +LOCAL_CONFIG=/etc/grml/grml-live.local +if [ -r "$LOCAL_CONFIG" ] ; then + log "Sourcing $LOCAL_CONFIG" + . $LOCAL_CONFIG +else + log "No $LOCAL_CONFIG found, not sourcing it" + LOCAL_CONFIG='' +fi +# }}} + # ask user whether the setup is ok {{{ if [ -z "$FORCE" ] ; then echo echo "${PN} [${GRML_LIVE_VERSION}]: check your configuration (or use -F to force execution):" echo echo " FAI classes: $CLASSES" - echo " main directory: $OUTPUT" + [ -r "$LOCAL_CONFIG" ] && echo " local config: /etc/grml/grml-live.local" [ -n "$CONFIG" ] && echo " configuration: $CONFIG" + echo " main directory: $OUTPUT" [ -n "$CHROOT_OUTPUT" ] && echo " chroot target: $CHROOT_OUTPUT" [ -n "$BUILD_OUTPUT" ] && echo " build target: $BUILD_OUTPUT" [ -n "$ISO_OUTPUT" ] && echo " ISO target: $ISO_OUTPUT" @@ -253,15 +267,6 @@ if [ -z "$FORCE" ] ; then echo fi -# read local (non-packaged) configuration: -LOCAL_CONFIG=/etc/grml/grml-live.local -if [ -r "$LOCAL_CONFIG" ] ; then - log "Sourcing $LOCAL_CONFIG" - . $LOCAL_CONFIG -else - LOCAL_CONFIG='' -fi - if [ -n "$CONFIG" ] ; then if ! [ -f "$CONFIG" ] ; then log "Sorry, $CONFIG could not be read. Exiting. [$(date)]" @@ -565,7 +570,7 @@ else mkdir -p "$ISO_OUTPUT" || bailout 6 "Problem with creating $ISO_OUTPUT for stage 'iso build'" CURRENT_DIR=$(pwd) cd "$BUILD_OUTPUT" && - log "mkisofs -V grml $VERSION -publisher 'grml-live | grml.org' -l -r -J -no-emul-boot -boot-load-size 4 -boot-info-table -b $BOOT_FILE -o ${ISO_OUTPUT}/${ISO_NAME} ." + log "mkisofs -V grml '$VERSION' -publisher 'grml-live | grml.org' -l -r -J -no-emul-boot -boot-load-size 4 -boot-info-table -b $BOOT_FILE -o ${ISO_OUTPUT}/${ISO_NAME} ." mkisofs -V "grml $VERSION" -publisher 'grml-live | grml.org' \ -l -r -J -no-emul-boot -boot-load-size 4 -boot-info-table \ -b $BOOT_FILE \