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-config21
1 files changed, 12 insertions, 9 deletions
diff --git a/prep-boot-floppy-and-ks-config b/prep-boot-floppy-and-ks-config
index 2a9883f..9432c16 100755
--- a/prep-boot-floppy-and-ks-config
+++ b/prep-boot-floppy-and-ks-config
@@ -44,7 +44,7 @@ Options:
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
+ --krnl-cmdline add stuff to the destination system kernel command line
--sec-ip IP of secondary interface
--sec-nm Netmask of secondary interface
-h, --help this
@@ -54,6 +54,13 @@ bootstrapping, and leave the system unmanaged.
If -N, -K, -S options are not given, default values are provided.
+To avoid shell interpretation of whitespace in --inst-cmdline and
+--krnl-cmdline use escaped semicolon:
+ To achieve this:
+ console=tty1 console=ttyS0,115200n8
+ write this:
+ console=tty1\;console=ttyS0,115200n8
+
EOF
}
@@ -114,10 +121,14 @@ function parse_commadline {
shift
;;
--inst-cmdline)
+ # hand over the argument unchanged, and let create-boot-floppy parse it
+ #InstCmdLineOpt="--inst-cmdline $(echo ${2} | sed -e 's/;/ /g')"
InstCmdLineOpt="--inst-cmdline ${2}"
shift
;;
--krnl-cmdline)
+ # hand over the argument unchanged, and let adapt-ks-template parse it
+ #KrnlCmdLineOpt="--krnl-cmdline $(echo ${2} | sed -e 's/;/ /g')"
KrnlCmdLineOpt="--krnl-cmdline ${2}"
shift
;;
@@ -191,14 +202,6 @@ 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 ${@}