summaryrefslogtreecommitdiff
path: root/create-boot-floppy
diff options
context:
space:
mode:
Diffstat (limited to 'create-boot-floppy')
-rwxr-xr-xcreate-boot-floppy20
1 files changed, 19 insertions, 1 deletions
diff --git a/create-boot-floppy b/create-boot-floppy
index 6178e76..31e965c 100755
--- a/create-boot-floppy
+++ b/create-boot-floppy
@@ -36,6 +36,8 @@ Options:
-N, --nameserver Nameserver of target system
-S, --cosmos-hash Hash used by cosmos to verify stuff
-h, --help this
+ --tty console number
+ --ttyS serial console number
If --cosmos-hash is set to 'disabled', the kickstart stage should skip cosmos
bootstrapping, and leave the system unmanaged.
@@ -95,6 +97,14 @@ function parse_commadline {
TmpDir="${2}"
shift
;;
+ --tty)
+ tty="${2}"
+ shift
+ ;;
+ --ttyS)
+ ttyS="${2}"
+ shift
+ ;;
*)
echo "what do you mean \"$1\"?"
exit 1
@@ -153,6 +163,14 @@ function check_options {
else
mkdir -p "${TmpDir}"
fi
+ if [ "x${tty}" = "x" ]
+ then
+ tty=1
+ fi
+ if [ "x${ttyS}" = "x" ]
+ then
+ ttyS=1
+ fi
}
# Host="kas-fiona-10-02"
@@ -233,7 +251,7 @@ route
###
# Set install parameters:
set base http://\\$"{"ks"}"/install/centos/7/os/x86_64
-kernel \\$"{"base"}"/images/pxeboot/vmlinuz text console=tty1 console=ttyS1,115200n8 ip=\\$"{"ip"}" netmask=\\$"{"nm"}" gateway=\\$"{"gw"}" repo=\\$"{"base"}" ks=http://\\$"{"ks"}"/install/ks/\\$"{"hn"}".ks cosmoshash=${CosmosHash}
+kernel \\$"{"base"}"/images/pxeboot/vmlinuz text console=tty${tty} console=ttyS${ttyS},115200n8 ip=\\$"{"ip"}" netmask=\\$"{"nm"}" gateway=\\$"{"gw"}" repo=\\$"{"base"}" ks=http://\\$"{"ks"}"/install/ks/\\$"{"hn"}".ks cosmoshash=${CosmosHash}
initrd \\$"{"base"}"/images/pxeboot/initrd.img
###
# Boot into install