diff options
author | Jon Clausen <jac@nordu.net> | 2018-07-31 15:47:21 +0200 |
---|---|---|
committer | Jon Clausen <jac@nordu.net> | 2018-07-31 15:47:21 +0200 |
commit | a055b0bb2824b95017c6a4eb5fa75e76f29bce99 (patch) | |
tree | c0e1c3491873295b6a874cdec93b23f8ae54d451 /create-boot-floppy | |
parent | 8673d6306458fb82e5160032f731f4c83b41c325 (diff) |
use escaped semicolon for kernel cmdline whitespace substitution
Diffstat (limited to 'create-boot-floppy')
-rwxr-xr-x | create-boot-floppy | 9 |
1 files changed, 8 insertions, 1 deletions
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 ;; *) |