summaryrefslogtreecommitdiff
path: root/prep-boot-floppy-and-ks-config
diff options
context:
space:
mode:
Diffstat (limited to 'prep-boot-floppy-and-ks-config')
-rwxr-xr-xprep-boot-floppy-and-ks-config15
1 files changed, 13 insertions, 2 deletions
diff --git a/prep-boot-floppy-and-ks-config b/prep-boot-floppy-and-ks-config
index dd9779d..3f35113 100755
--- a/prep-boot-floppy-and-ks-config
+++ b/prep-boot-floppy-and-ks-config
@@ -52,6 +52,7 @@ Options:
--krnl-cmdline add stuff to the destination system kernel command line
--sec-ip IP of secondary interface
--sec-nm Netmask of secondary interface
+ --sec-gw Gateway of secondary interface
-h, --help this
If --cosmos-hash is set to 'disabled', the kickstart stage should skip cosmos
@@ -133,6 +134,10 @@ function parse_commadline {
SecNM="${2}"
shift
;;
+ --sec-gw)
+ SecGW="${2}"
+ shift
+ ;;
--template)
TemplateOpt="--template ${2}"
shift
@@ -202,6 +207,12 @@ function check_options {
print_usage
exit 1
fi
+ if [ "x${SecGW}" = "x" ]
+ then
+ echo "${Self}: --sec-gw is mandatory"
+ print_usage
+ exit 1
+ fi
if [ "x${CosmosHash}" = "x" ]
then
CosmosHash="2ea14b0b958fdc70ad37e3cb9b4185b3648137b8"
@@ -249,8 +260,8 @@ ${ScriptPath}/create-boot-floppy -D ${Domain} -G ${GW} -H ${Host} \
${ScriptPath}/adapt-ks-template -D ${Domain} -G ${GW} -H ${Host} \
-I ${IP} -M ${NM} -T ${TmpDir} -P ${PublishPath} --sec-ip ${SecIP} \
- --sec-nm ${SecNM} ${TemplateOpt} ${KrnlCmdLineOpt} ${CosmosTagOpt} \
- --gen-cmd ${SelfCommandLine} --boot-dev "${BootDev}" \
+ --sec-nm ${SecNM} --sec-gw ${SecGW}${TemplateOpt} ${KrnlCmdLineOpt} \
+ ${CosmosTagOpt} --gen-cmd ${SelfCommandLine} --boot-dev "${BootDev}" \
--root-dev "${RootDev}"
# When this script calls the other two, PublishPath *is* set, so expect