summaryrefslogtreecommitdiff
path: root/prep-boot-floppy-and-ks-config
diff options
context:
space:
mode:
authorJon Clausen <jac@nordu.net>2018-07-31 14:57:14 +0200
committerJon Clausen <jac@nordu.net>2018-07-31 14:57:14 +0200
commit8673d6306458fb82e5160032f731f4c83b41c325 (patch)
tree1062b29e2098a917b3fec3ef9749f26f5a19450c /prep-boot-floppy-and-ks-config
parent55282ee15f1eeefc5a68d843003b09a6f2f6da1d (diff)
allow direct kernel commands instead of tty+ttyS
Diffstat (limited to 'prep-boot-floppy-and-ks-config')
-rwxr-xr-xprep-boot-floppy-and-ks-config17
1 files changed, 8 insertions, 9 deletions
diff --git a/prep-boot-floppy-and-ks-config b/prep-boot-floppy-and-ks-config
index 9fd45a7..2a9883f 100755
--- a/prep-boot-floppy-and-ks-config
+++ b/prep-boot-floppy-and-ks-config
@@ -43,10 +43,10 @@ Options:
name of the template file. Example:
supermicro/SYS-5018D-FN8T/dtn-10g.ks
dell/R7425/100g-dtn.ks
+ --inst-cmdline add stuff to the install system kernel command line
+ --krnl-cmdline add stuff to the install system kernel command line
--sec-ip IP of secondary interface
--sec-nm Netmask of secondary interface
- --tty console number
- --ttyS serial console number
-h, --help this
If --cosmos-hash is set to 'disabled', the kickstart stage should skip cosmos
@@ -113,12 +113,12 @@ function parse_commadline {
TemplateOpt="--template ${2}"
shift
;;
- --tty)
- tty="${2}"
+ --inst-cmdline)
+ InstCmdLineOpt="--inst-cmdline ${2}"
shift
;;
- --ttyS)
- ttyS="${2}"
+ --krnl-cmdline)
+ KrnlCmdLineOpt="--krnl-cmdline ${2}"
shift
;;
*)
@@ -212,12 +212,11 @@ ScriptPath=$(echo $0 | sed -e "s#/${Self}##")
#echo $ScriptPath
${ScriptPath}/create-boot-floppy -D ${Domain} -G ${GW} -H ${Host} \
- -I ${IP} -M ${NM} -T ${TmpDir} -P ${PublishPath} --tty "${tty}" \
- --ttyS "${ttyS}"
+ -I ${IP} -M ${NM} -T ${TmpDir} -P ${PublishPath} ${InstCmdLineOpt}
${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} --tty "${tty}" --ttyS "${ttyS}"
+ --sec-nm ${SecNM} ${TemplateOpt} ${KrnlCmdLineOpt}
# When this script calls the other two, PublishPath *is* set, so expect
# everything of value to be evacuated, and just clean up: