X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=grml-live;h=64e50a43b0db41a96bc576a5c8e63d468de098b9;hb=02b32aa7fe4022fdefc80552539ecba4f1067492;hp=93478730493e5c1cc5a4db2fe4ba99f3bfe82896;hpb=fecb05b5ae11d2f92905b81eafb7902ea85cafc6;p=grml-live.git diff --git a/grml-live b/grml-live index 9347873..64e50a4 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='' @@ -63,8 +69,7 @@ trap bailout 1 2 3 15 [ -n "$RELEASENAME" ] || RELEASENAME="grml-live rocks" [ -n "$GRML_NAME" ] || GRML_NAME='grml' -[ -n "$LOGDIR" ] || LOGDIR="/var/log/fai/dirinstall/$HOSTNAME" -[ -d "$LOGDIR" ] || mkdir -p $LOGDIR +[ -n "$LOGDIR" ] || LOGDIR="/var/log/" LOGFILE="$LOGDIR/grml-live.log" # }}} @@ -295,7 +300,8 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then # booting stuff: mkdir -p "$BUILD_TARGET"/boot/isolinux cp /boot/memtest86+.bin "$BUILD_TARGET"/boot/isolinux/memtest - cp "$CHROOT_TARGET"/boot/initrd* "$BUILD_TARGET"/boot/isolinux/initrd.gz + # do not keep the initrd inside the chroot, let's save space instead: + mv "$CHROOT_TARGET"/boot/initrd* "$BUILD_TARGET"/boot/isolinux/initrd.gz cp "$CHROOT_TARGET"/boot/vmlinuz* "$BUILD_TARGET"/boot/isolinux/linux26 cp /usr/lib/syslinux/chain.c32 "$BUILD_TARGET"/boot/isolinux/ cp /usr/lib/syslinux/isolinux.bin "$BUILD_TARGET"/boot/isolinux/