diff options
author | Jon Clausen <jac@nordu.net> | 2018-07-31 14:57:14 +0200 |
---|---|---|
committer | Jon Clausen <jac@nordu.net> | 2018-07-31 14:57:14 +0200 |
commit | 8673d6306458fb82e5160032f731f4c83b41c325 (patch) | |
tree | 1062b29e2098a917b3fec3ef9749f26f5a19450c /create-boot-floppy | |
parent | 55282ee15f1eeefc5a68d843003b09a6f2f6da1d (diff) |
allow direct kernel commands instead of tty+ttyS
Diffstat (limited to 'create-boot-floppy')
-rwxr-xr-x | create-boot-floppy | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/create-boot-floppy b/create-boot-floppy index 31e965c..2cb7a87 100755 --- a/create-boot-floppy +++ b/create-boot-floppy @@ -36,8 +36,7 @@ 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 + --inst-cmdline add stuff to the install system kernel command line If --cosmos-hash is set to 'disabled', the kickstart stage should skip cosmos bootstrapping, and leave the system unmanaged. @@ -97,12 +96,8 @@ function parse_commadline { TmpDir="${2}" shift ;; - --tty) - tty="${2}" - shift - ;; - --ttyS) - ttyS="${2}" + --inst-cmdline) + InstCmdLine="${2}" shift ;; *) @@ -163,14 +158,6 @@ 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" @@ -251,7 +238,7 @@ route ### # Set install parameters: set base http://\\$"{"ks"}"/install/centos/7/os/x86_64 -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} +kernel \\$"{"base"}"/images/pxeboot/vmlinuz text ${InstCmdLine} 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 |