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-config23
1 files changed, 21 insertions, 2 deletions
diff --git a/prep-boot-floppy-and-ks-config b/prep-boot-floppy-and-ks-config
index 6c857c5..9fd45a7 100755
--- a/prep-boot-floppy-and-ks-config
+++ b/prep-boot-floppy-and-ks-config
@@ -45,6 +45,8 @@ Options:
dell/R7425/100g-dtn.ks
--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
@@ -111,6 +113,14 @@ function parse_commadline {
TemplateOpt="--template ${2}"
shift
;;
+ --tty)
+ tty="${2}"
+ shift
+ ;;
+ --ttyS)
+ ttyS="${2}"
+ shift
+ ;;
*)
echo "what do you mean \"$1\"?"
exit 1
@@ -181,6 +191,14 @@ function check_options {
then
PublishPath="/var/www/html/install"
fi
+ if [ "x${tty}" = "x" ]
+ then
+ tty=1
+ fi
+ if [ "x${ttyS}" = "x" ]
+ then
+ ttyS=1
+ fi
}
parse_commadline ${@}
@@ -194,11 +212,12 @@ 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}
+ -I ${IP} -M ${NM} -T ${TmpDir} -P ${PublishPath} --tty "${tty}" \
+ --ttyS "${ttyS}"
${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}
+ --sec-nm ${SecNM} ${TemplateOpt} --tty "${tty}" --ttyS "${ttyS}"
# When this script calls the other two, PublishPath *is* set, so expect
# everything of value to be evacuated, and just clean up: