X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml-live;h=2dd904095bbdd85779a1f4ebd6bcc04928debf3a;hb=472474cceb42145464cbfc59d751f6277e5253aa;hp=6e4522c2c17079abfa8d7a6d783ead1d828c1778;hpb=533b646324c35fe26c9dcd2848440aa8b73a2923;p=grml-live.git diff --git a/grml-live b/grml-live index 6e4522c..2dd9040 100755 --- a/grml-live +++ b/grml-live @@ -416,6 +416,9 @@ if [ -n "$SUITE" ] ; then done fi +# set $ARCH +[ -n "$ARCH" ] || ARCH="$(dpkg --print-architecture)" + # validate whether the specified architecture class matches the # architecture (option), otherwise installation of kernel will fail if echo $CLASSES | grep -qi i386 ; then @@ -432,8 +435,6 @@ elif echo $CLASSES | grep -qi amd64 ; then fi fi -# set $ARCH -[ -n "$ARCH" ] || ARCH="$(dpkg --print-architecture)" if grep -q -- 'FAI_DEBOOTSTRAP_OPTS.*--arch' "$NFSROOT_CONF" ; then sed "s/--arch [a-z0-9]* /--arch $ARCH /" "$NFSROOT_CONF" | sponge "$NFSROOT_CONF" else @@ -447,6 +448,12 @@ if [ -n "$BUILD_DIRTY" ]; then else [ -n "$CHROOT_OUTPUT" ] || CHROOT_OUTPUT="$OUTPUT/grml_chroot" + # provide inform fai about the ISO we build + [ -d "$CHROOT_OUTPUT/etc/" ] || mkdir -p "$CHROOT_OUTPUT/etc/" + echo '# This file has been generated by grml-live.' > "$CHROOT_OUTPUT/etc/grml_live_version" + [ -n "$GRML_LIVE_VERSION" ] && echo "GRML_LIVE_VERSION=$GRML_LIVE_VERSION" >> "$CHROOT_OUTPUT/etc/grml_live_version" + [ -n "$SUITE" ] && echo "SUITE=$SUITE" >> "$CHROOT_OUTPUT/etc/grml_live_version" + if [ -n "$UPDATE" -o -n "$BUILD_ONLY" ] ; then FAI_ACTION=softupdate else