From 79a7e41bb7b15906f2d205756e4c647175bf7dbe Mon Sep 17 00:00:00 2001 From: Shiz Date: Thu, 17 Nov 2016 02:52:51 +0100 Subject: init: fix quoting issue for kernel arguments The kernel passes arguments from /proc/cmdline as a single string like foo=bar baz="something with spaces". In the latter case, with the added single quotes the actual value of ${KOPT_baz} would contain these quotes as well, which is not the intention. --- initramfs-init.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'initramfs-init.in') diff --git a/initramfs-init.in b/initramfs-init.in index 5b177a5..50dc844 100755 --- a/initramfs-init.in +++ b/initramfs-init.in @@ -279,7 +279,7 @@ for opt; do for i in $myopts; do case "$opt" in - $i=*) eval "KOPT_${i}='${opt#*=}'";; + $i=*) eval "KOPT_${i}=${opt#*=}";; $i) eval "KOPT_${i}=yes";; no$i) eval "KOPT_${i}=no";; esac -- cgit v1.2.3