diff options
author | Shiz <hi@shiz.me> | 2016-11-17 02:52:51 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-11-28 17:35:04 -0200 |
commit | 79a7e41bb7b15906f2d205756e4c647175bf7dbe (patch) | |
tree | 198defe674e7a47ce6c81d957f45de8a384a54fe /initramfs-init.in | |
parent | 267f158c87b7c8dc16bcb26e85378764ec2a826e (diff) | |
download | mkinitfs-79a7e41bb7b15906f2d205756e4c647175bf7dbe.tar.bz2 mkinitfs-79a7e41bb7b15906f2d205756e4c647175bf7dbe.tar.xz |
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.
Diffstat (limited to 'initramfs-init.in')
-rwxr-xr-x | initramfs-init.in | 2 |
1 files changed, 1 insertions, 1 deletions
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 |