From a055b0bb2824b95017c6a4eb5fa75e76f29bce99 Mon Sep 17 00:00:00 2001 From: Jon Clausen Date: Tue, 31 Jul 2018 15:47:21 +0200 Subject: use escaped semicolon for kernel cmdline whitespace substitution --- create-boot-floppy | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'create-boot-floppy') diff --git a/create-boot-floppy b/create-boot-floppy index 2cb7a87..a6f0a43 100755 --- a/create-boot-floppy +++ b/create-boot-floppy @@ -43,6 +43,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 use escaped +semicolon: + To achieve this: + console=tty1 console=ttyS0,115200n8 + write this: + console=tty1\;console=ttyS0,115200n8 + The script needs ipxe and syslinux to run, and 'sudo' to copy things onto the floppy image @@ -97,7 +104,7 @@ function parse_commadline { shift ;; --inst-cmdline) - InstCmdLine="${2}" + InstCmdLineOpt="--inst-cmdline $(echo ${2} | sed -e 's/;/ /g')" shift ;; *) -- cgit v1.1