X-Original-To: alpine-devel@lists.alpinelinux.org Received: from hydrogenium.shiz.me (hydrogenium.shiz.me [62.210.12.63]) by lists.alpinelinux.org (Postfix) with ESMTP id 603C25C4A6A for ; Thu, 17 Nov 2016 01:53:07 +0000 (GMT) Received: from localhost (::ffff:80.112.172.223 [IPv6:::ffff:80.112.172.223]) by hydrogenium.shiz.me (OpenSMTPD) with ESMTPSA id 0ebc7f92 TLS protoversion=TLSv1.2 ciphersuite=ECDHE-RSA-AES256-GCM-SHA384 verify=NO for ; Thu, 17 Nov 2016 01:52:46 +0000 (UTC) From: Shiz To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH 2/3] init: fix quoting issue for kernel arguments Date: Thu, 17 Nov 2016 02:52:51 +0100 Message-Id: <20161117015252.27549-2-hi@shiz.me> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20161117015252.27549-1-hi@shiz.me> References: <20161117015252.27549-1-hi@shiz.me> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: 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(-) diff --git a/initramfs-init.in b/initramfs-init.in index 78bcbe4..9aa1d3f 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 -- 2.10.0 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---