X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=grml-live;h=2c7abcf64174f9eb50fd82587ba0a6d8d243c1bf;hb=1d528c07e34d2c4db7de113a71a19327d4404ee9;hp=e31244d1edc6df35eec2626b0a32150fda285135;hpb=4f8937bce96f552121e525eb927a2daea4dfae88;p=grml-live.git diff --git a/grml-live b/grml-live index e31244d..2c7abcf 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 Sep 29 10:44:26 CEST 2007 [mika] +# Latest change: Thu Oct 04 22:16:28 CEST 2007 [mika] ################################################################################ # read configuration files, set some misc variables {{{ @@ -21,6 +21,12 @@ if [ "$(id -u 2>/dev/null)" != 0 ] ; then exit 1 fi +if [ -r /var/run/fai/FAI_INSTALLATION_IN_PROGRESS ] ; then + echo "/usr/sbin/fai already running or was aborted before."&>2 + echo "You may remove /var/run/fai/FAI_INSTALLATION_IN_PROGRESS and try again.">&2 + exit 1 +fi + # make sure they are not set by default VERBOSE='' FORCE='' @@ -65,7 +71,7 @@ trap bailout 1 2 3 15 [ -n "$LOGDIR" ] || LOGDIR="/var/log/fai/dirinstall/$HOSTNAME" [ -d "$LOGDIR" ] || mkdir -p $LOGDIR -LOGFILE="$LOGDIR/grml-live.conf" +LOGFILE="$LOGDIR/grml-live.log" # }}} # some important functions {{{ @@ -187,6 +193,9 @@ if [ -z "$FORCE" ] ; then [ -n "$CHROOT_TARGET" ] && echo " chroot target: $CHROOT_TARGET" [ -n "$BUILD_TARGET" ] && echo " build target: $BUILD_TARGET" [ -n "$ISO_TARGET" ] && echo " ISO target: $ISO_TARGET" + [ -n "$GRML_NAME" ] && echo " grml name: $GRML_NAME" + [ -n "$RELEASENAME" ] && echo " release name: $RELEASENAME" + [ -n "$VERSION" ] && echo " grml version: $VERSION" [ -n "$SUITE" ] && echo " Debian suite: $SUITE" [ -n "$BOOT_METHOD" ] && echo " Boot method: $BOOT_METHOD" [ -n "$FAI_ARGS" ] && echo " additional arguments for FAI: $FAI_ARGS" @@ -362,12 +371,12 @@ fi # create md5sum file: ( cd $BUILD_TARGET/GRML && -find .. -type f -not -name md5sums -exec md5sum {} \; > md5sums ) +find .. -type f -not -name md5sums -not -name isolinux.bin -exec md5sum {} \; > md5sums ) # }}} # ISO_TARGET - mkisofs {{{ [ -n "$ISO_TARGET" ] || ISO_TARGET="$TARGET/grml_isos" -[ -n "$ISO_NAME" ] || ISO_NAME="$GRML_NAME_${VERSION}.iso" +[ -n "$ISO_NAME" ] || ISO_NAME="${GRML_NAME}_${VERSION}.iso" if [ "$BOOT_METHOD" = "isolinux" ] ; then BOOT_FILE="boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat"