################################################################################
_opt_temp=`getopt --name grml-debootstrap -o +m:i:r:t:p:c:d:vhV --long \
- mirror:,iso:,release:,target:,mntpoint:,debopt:,interactive,nodebootstrap,config:,confdir:,packages::,chroot-scripts::,scripts::,debconf::,keep_src_list,hostname:,password:,bootappend:,groot:,grub:,verbose,help,version \
+ mirror:,iso:,release:,target:,mntpoint:,debopt:,interactive,nodebootstrap,config:,confdir:,packages::,chroot-scripts::,scripts::,debconf::,keep_src_list,hostname:,password:,bootappend:,groot:,grub:,arch:,verbose,help,version \
-- "$@"`
if [ $? != 0 ]; then
eerror "Try 'grml-debootstrap --help' for more information."; eend 1; exit 1
--nodebootstrap) # Skip debootstrap, only do configuration to the target
_opt_nodebootstrap=T
;;
+ --arch) # Target architecutre
+ shift; _opt_arch="$1"
+ ;;
#
# == Configuration options
\$TARGET in grub syntax, like hd0,0 for /dev/sda1.
--grub <device> Target for grub installation. Use grub syntax for
specifying, like hd0 for /dev/sda.
+ --arch <arch> Architecture to use. Currently only i386 and amd64
+ are supported.
Configuration options:
[ "$_opt_bootappend" ] && BOOT_APPEND=$_opt_bootappend
[ "$_opt_groot" ] && GROOT=$_opt_groot
[ "$_opt_grub" ] && GRUB=$_opt_grub
+[ "$_opt_arch" ] && ARCH=$_opt_arch
[ "$_opt_verbose" ] && VERBOSE="-v"
[ "$_opt_help" ] && {