+ -a|--arch)
+ if [ "$2" == "x86" ]; then
+ arch="X86"
+ arch_id="1"
+ # Need to test Itanium images before making it an
+ # option. Note: syslinux is x86 only so can't be used
+ # for the Itanium disk image.
+ #elif [ "$2" == "ia64" ]; then
+ #arch="IA64"
+ #arch_id="2"
+ elif [ "$2" == "amd64" ]; then
+ arch="AMD64"
+ arch_id="3"
+ else
+ echo "ERROR: $2 is not a valid arch (x86/amd64)"
+ exit 1
+ fi
+ shift
+ ;;