mirror of
https://github.com/linuxboot/heads.git
synced 2025-04-16 07:26:46 +00:00
fix bug with e.g. nosplash parameter in kernel command line
strings from $cmdremove should only be removed from $cmdline if they are enclosed by spaces of if they are at the beginning of $cmdline followed by a space or if they are at the end of $cmdline prepended by a space
This commit is contained in:
parent
7a6a3fe5a4
commit
1245701694
@ -49,7 +49,9 @@ adjusted_cmd_line="n"
|
||||
adjust_cmd_line() {
|
||||
if [ -n "$cmdremove" ]; then
|
||||
for i in $cmdremove; do
|
||||
cmdline="${cmdline//$i/}"
|
||||
cmdline="${cmdline#$i }"
|
||||
cmdline="${cmdline/ $i / }"
|
||||
cmdline="${cmdline% $i}"
|
||||
done
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user