projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a456fd4
)
detect architecture before checkconfiguration
author
Darshaka Pathirana
<dpat@syn-net.org>
Sat, 25 Feb 2012 02:24:56 +0000
(
03:24
+0100)
committer
Darshaka Pathirana
<dpat@syn-net.org>
Tue, 15 May 2012 12:05:04 +0000
(14:05 +0200)
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
1a71c16
..
89b5adc
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-774,6
+774,17
@@
if [ -z "$TARGET" -o -n "$INTERACTIVE" ] ; then
fi
# }}}
fi
# }}}
+# architecture setup {{{
+if [ -n "$ARCH" ] ; then
+ ARCHCMD="--arch $ARCH"
+ ARCHINFO=" (${ARCH})"
+else
+ ARCH="$(dpkg --print-architecture)"
+ ARCHCMD="--arch $ARCH"
+ ARCHINFO=" (${ARCH})"
+fi
+# }}}
+
checkconfiguration
# finally make sure at least $TARGET is set [the partition for the new system] {{{
checkconfiguration
# finally make sure at least $TARGET is set [the partition for the new system] {{{
@@
-825,17
+836,6
@@
else
fi
# }}}
fi
# }}}
-# architecture setup {{{
-if [ -n "$ARCH" ] ; then
- ARCHCMD="--arch $ARCH"
- ARCHINFO=" (${ARCH})"
-else
- ARCH="$(dpkg --print-architecture)"
- ARCHCMD="--arch $ARCH"
- ARCHINFO=" (${ARCH})"
-fi
-# }}}
-
# make sure we have the right syntax when using an iso image {{{
if [ -n "$ISO" ] ; then
case $ISO in
# make sure we have the right syntax when using an iso image {{{
if [ -n "$ISO" ] ; then
case $ISO in