Use output of 'dpkg --print-architecture' instead of default $ARCH.
authorMichael Prokop <devnull@localhost>
Sun, 16 Sep 2007 21:54:51 +0000 (23:54 +0200)
committerMichael Prokop <devnull@localhost>
Sun, 16 Sep 2007 21:54:51 +0000 (23:54 +0200)
Rename x86 into i386 therefore to keep it clear.

18 files changed:
etc/grml/grml-live.conf
grml-live
i386_files/boot/isolinux/allinone.img [moved from x86_files/boot/isolinux/allinone.img with 100% similarity]
i386_files/boot/isolinux/balder10.imz [moved from x86_files/boot/isolinux/balder10.imz with 100% similarity]
i386_files/boot/isolinux/boot-beep.msg [moved from x86_files/boot/isolinux/boot-beep.msg with 100% similarity]
i386_files/boot/isolinux/boot.msg [moved from x86_files/boot/isolinux/boot.msg with 100% similarity]
i386_files/boot/isolinux/f10 [moved from x86_files/boot/isolinux/f10 with 100% similarity]
i386_files/boot/isolinux/f2 [moved from x86_files/boot/isolinux/f2 with 100% similarity]
i386_files/boot/isolinux/f3 [moved from x86_files/boot/isolinux/f3 with 100% similarity]
i386_files/boot/isolinux/f4 [moved from x86_files/boot/isolinux/f4 with 100% similarity]
i386_files/boot/isolinux/f5 [moved from x86_files/boot/isolinux/f5 with 100% similarity]
i386_files/boot/isolinux/f6 [moved from x86_files/boot/isolinux/f6 with 100% similarity]
i386_files/boot/isolinux/f7 [moved from x86_files/boot/isolinux/f7 with 100% similarity]
i386_files/boot/isolinux/f8 [moved from x86_files/boot/isolinux/f8 with 100% similarity]
i386_files/boot/isolinux/f9 [moved from x86_files/boot/isolinux/f9 with 100% similarity]
i386_files/boot/isolinux/isolinux.cfg [moved from x86_files/boot/isolinux/isolinux.cfg with 100% similarity]
i386_files/boot/isolinux/logo.16 [moved from x86_files/boot/isolinux/logo.16 with 100% similarity]
i386_files/boot/isolinux/syslinux.cfg [moved from x86_files/boot/isolinux/syslinux.cfg with 100% similarity]

index decafa1..89cae4d 100644 (file)
@@ -3,7 +3,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
-# Latest change: Sat Sep 15 21:56:52 CEST 2007 [mika]
+# Latest change: Sun Sep 16 23:54:07 CEST 2007 [mika]
 ################################################################################
 
 # main output directory
@@ -19,7 +19,13 @@ BUILD_TARGET="$TARGET/grml_cd"
 ISO_TARGET="$TARGET/grml_isos"
 
 # which architecture want to build for now?
-ARCH="x86"
+# defaults to output of 'dpkg --print-architecture'
+# ARCH="i386"
+
+# which Debian suite to you want to use?
+# unless set it defaults to "etch"
+# support values: stable, testing, unstable, etch, lenny, sid
+# SUITE="sid"
 
 # which FAI classes do you want to use by default?
 CLASSES="GRML,I386"
index 4240aa1..572ef44 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
-# Latest change: Sun Sep 16 23:47:55 CEST 2007 [mika]
+# Latest change: Sun Sep 16 23:53:24 CEST 2007 [mika]
 ################################################################################
 
 # read configuration files, set some misc variables {{{
@@ -162,8 +162,9 @@ fi
 [ -n "$BUILD_TARGET" ] || BUILD_TARGET="$TARGET/grml_cd"
 mkdir -p "$BUILD_TARGET" || bailout 6 "Problem with creating $BUILD_TARGET for stage ARCH"
 
-# x86:
-if [ "$ARCH" = x86 ] ; then
+# i386:
+[ -n "$ARCH" ] || ARCH="$(dpkg --print-architecture)"
+if [ "$ARCH" = i386 ] ; then
    if [ -d "$BUILD_TARGET"/boot/isolinux ] ; then
       echo "  [x] $BUILD_TARGET/boot/isolinux exists already - skipping stage 'boot/isolinux'"
       continue
@@ -177,14 +178,14 @@ if [ "$ARCH" = x86 ] ; then
       cp /usr/lib/syslinux/isolinux.bin                             "$BUILD_TARGET"/boot/isolinux/
       cp /usr/lib/syslinux/memdisk                                  "$BUILD_TARGET"/boot/isolinux/
       cp /usr/lib/syslinux/menu.c32                                 "$BUILD_TARGET"/boot/isolinux/
-      cp /usr/share/grml-live/x86_files/boot/isolinux/allinone.img  "$BUILD_TARGET"/boot/isolinux/
-      cp /usr/share/grml-live/x86_files/boot/isolinux/balder10.imz  "$BUILD_TARGET"/boot/isolinux/
-      cp /usr/share/grml-live/x86_files/boot/isolinux/boot-beep.msg "$BUILD_TARGET"/boot/isolinux/
-      cp /usr/share/grml-live/x86_files/boot/isolinux/boot.msg      "$BUILD_TARGET"/boot/isolinux/
-      cp /usr/share/grml-live/x86_files/boot/isolinux/f*            "$BUILD_TARGET"/boot/isolinux/
-      cp /usr/share/grml-live/x86_files/boot/isolinux/isolinux.cfg  "$BUILD_TARGET"/boot/isolinux/
-      cp /usr/share/grml-live/x86_files/boot/isolinux/logo.16       "$BUILD_TARGET"/boot/isolinux/
-      cp /usr/share/grml-live/x86_files/boot/isolinux/syslinux.cfg  "$BUILD_TARGET"/boot/isolinux/
+      cp /usr/share/grml-live/i386_files/boot/isolinux/allinone.img  "$BUILD_TARGET"/boot/isolinux/
+      cp /usr/share/grml-live/i386_files/boot/isolinux/balder10.imz  "$BUILD_TARGET"/boot/isolinux/
+      cp /usr/share/grml-live/i386_files/boot/isolinux/boot-beep.msg "$BUILD_TARGET"/boot/isolinux/
+      cp /usr/share/grml-live/i386_files/boot/isolinux/boot.msg      "$BUILD_TARGET"/boot/isolinux/
+      cp /usr/share/grml-live/i386_files/boot/isolinux/f*            "$BUILD_TARGET"/boot/isolinux/
+      cp /usr/share/grml-live/i386_files/boot/isolinux/isolinux.cfg  "$BUILD_TARGET"/boot/isolinux/
+      cp /usr/share/grml-live/i386_files/boot/isolinux/logo.16       "$BUILD_TARGET"/boot/isolinux/
+      cp /usr/share/grml-live/i386_files/boot/isolinux/syslinux.cfg  "$BUILD_TARGET"/boot/isolinux/
       # minirt26.gz
       # boot.cat
       if [ -n "$WINDOWS_BINARIES" ] ; then