Add extra options to control boot options on x86 CDs

This commit is contained in:
Steve McIntyre 2015-01-14 01:57:22 +00:00
parent 48e9042098
commit fc10046fba
1 changed files with 20 additions and 0 deletions

View File

@ -12,6 +12,26 @@
set -e
#set -x
# Have we been told to use just one boot method? If none listed,
# assume all are desired. Order also matters. Possible values are
# "BIOS", "EFI" and "BIOS EFI". We'll also accept "EFI BIOS" for
# completeness, but we will switch the order.
if [ "$BOOT_METHODS"x = ""x ] \
|| [ "$BOOT_METHODS"x = "BIOS EFI"x ] \
|| [ "$BOOT_METHODS"x = "EFI BIOS"x ] ; then
BOOT_BIOS=1
BOOT_EFI=2
elif [ "$BOOT_METHODS"x = "BIOS"x ] ; then
BOOT_BIOS=1
BOOT_EFI=0
elif [ "$BOOT_METHODS"x = "EFI"x ] ; then
BOOT_EFI=1
BOOT_BIOS=0
else
echo "ERROR: Unrecognized boot method choice $BOOT_METHODS"
exit 1
fi
N=$1
CDDIR=$2
BOOTDIR=