X-Git-Url: http://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=grml-live;h=060d3a218a016213cfe113a21ab24dd804627f10;hp=4892a8393a5c28c35efab60ec673fe5d029c416c;hb=ace32ae4a5dffd70e1b924d597bd2450d0417590;hpb=8ef26a362400bcf62cfd7b921a5234f8736c921c diff --git a/grml-live b/grml-live index 4892a83..060d3a2 100755 --- a/grml-live +++ b/grml-live @@ -23,7 +23,7 @@ fi set -e # global variables -GRML_LIVE_VERSION='0.9.41~git' +GRML_LIVE_VERSION='0.9.43' PN="$(basename $0)" CMDLINE="$0 $@" SOURCES_LIST_FILE='/etc/grml/fai/apt/sources.list' @@ -245,8 +245,6 @@ shift $(($OPTIND - 1)) # set ARGV to the first not parsed commandline parameter # assume sane defaults (if not set already) {{{ [ -n "$ARCH" ] || ARCH="$(dpkg --print-architecture)" [ -n "$BOOT_METHOD" ] || BOOT_METHOD='isolinux' -[ -n "$BUILD_OUTPUT" ] || BUILD_OUTPUT="$OUTPUT/grml_cd" -[ -n "$CHROOT_OUTPUT" ] || CHROOT_OUTPUT="$OUTPUT/grml_chroot" [ -n "$CLASSES" ] || CLASSES="GRMLBASE,GRML_MEDIUM,I386" [ -n "$DATE" ] || DATE="$(date +%Y-%m-%d)" [ -n "$DISTRI_INFO" ] || DISTRI_INFO='Grml - Live Linux for system administrators ' @@ -256,9 +254,7 @@ shift $(($OPTIND - 1)) # set ARGV to the first not parsed commandline parameter [ -n "$GRML_FAI_CONFIG" ] || GRML_FAI_CONFIG='/etc/grml/fai' [ -n "$GRML_NAME" ] || GRML_NAME='grml' [ -n "$HOSTNAME" ] || HOSTNAME='grml' -[ -n "$ISO_OUTPUT" ] || ISO_OUTPUT="$OUTPUT/grml_isos" [ -n "$NFSROOT_CONF" ] || NFSROOT_CONF='/etc/grml/fai/make-fai-nfsroot.conf' -[ -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='lenny' @@ -266,6 +262,12 @@ shift $(($OPTIND - 1)) # set ARGV to the first not parsed commandline parameter [ -n "$USERNAME" ] || USERNAME='grml' [ -n "$VERSION" ] || VERSION='0.0.1' [ -n "$WINDOWS_BINARIES" ] || WINDOWS_BINARIES='http://the.earth.li/~sgtatham/putty/latest/x86/' + +# output specific stuff, depends on $OUTPUT (iff not set): +[ -n "$OUTPUT" ] || OUTPUT='/grml/grml-live' +[ -n "$BUILD_OUTPUT" ] || BUILD_OUTPUT="$OUTPUT/grml_cd" +[ -n "$CHROOT_OUTPUT" ] || CHROOT_OUTPUT="$OUTPUT/grml_chroot" +[ -n "$ISO_OUTPUT" ] || ISO_OUTPUT="$OUTPUT/grml_isos" # }}} # some misc checks before executing FAI {{{ @@ -274,11 +276,6 @@ specify it on the command line using the -c option." [ -n "$OUTPUT" ] || bailout 1 "Error: \$OUTPUT unset, please set it in $LIVE_CONF or specify it on the command line using the -o option." -# set subdirectories according to $OUTPUT: -CHROOT_OUTPUT="$OUTPUT/grml_chroot" -BUILD_OUTPUT="$OUTPUT/grml_cd" -ISO_OUTPUT="$OUTPUT/grml_isos" - # trim characters that are known to cause problems inside $GRML_NAME; # for example isolinux does not like '-' inside the directory name [ -n "$GRML_NAME" ] && export SHORT_NAME="$(echo $GRML_NAME | tr -d ',./;\- ')" @@ -393,7 +390,7 @@ if [ -n "$MIRROR_DIRECTORY" ] ; then fi cat > "$SOURCES_LIST_FILE" << EOF # NOTE: This file is *NOT* meant for manual customisation! This file is -# modified by grml-live and any changes might be overriden. +# modified by grml-live and any changes might be overridden. # You might consider using GRML_LIVE_SOURCES in /etc/grml/grml-live.conf* # or FAI's fcopy command with /etc/grml/fai/config/files instead! EOF @@ -404,7 +401,7 @@ EOF elif [ -n "$GRML_LIVE_SOURCES" ] ; then cat > "$SOURCES_LIST_FILE" << EOF # NOTE: This file is *NOT* meant for manual customisation! This file is -# modified by grml-live and any changes might be overriden. +# modified by grml-live and any changes might be overridden. # You might consider using GRML_LIVE_SOURCES in /etc/grml/grml-live.conf* # or FAI's fcopy command with /etc/grml/fai/config/files instead! EOF