aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-08 15:05:28 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-08 15:06:34 +0200
commit2cc0294437af4605d80cf45bd720d120c31133a3 (patch)
tree3352caa3ada7314163fb72bef312d2db3462669b
parentea70373de6cf50099d7c5676a57ca14c789dbf69 (diff)
downloadmkinitfs-2cc0294437af4605d80cf45bd720d120c31133a3.tar.bz2
mkinitfs-2cc0294437af4605d80cf45bd720d120c31133a3.tar.xz
init: do not eval /proc/cmdline
It breaks xen boot options like xen-pciback.hide=(01:00.0) ref #3609
-rwxr-xr-xinitramfs-init.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/initramfs-init.in b/initramfs-init.in
index 0e16a73..cd7d71e 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -381,9 +381,9 @@ find_boot_repositories() {
fi
}
-# read the kernel options. We use eval set so we can handle things like
-# acpi_osi="!Windows 2006"
-eval set -- `cat /proc/cmdline`
+# read the kernel options. we need surve things like:
+# acpi_osi="!Windows 2006" xen-pciback.hide=(01:00.0)
+set -- $(cat /proc/cmdline)
myopts="alpine_dev autodetect autoraid chart cryptroot cryptdm debug_init
dma init_args keep_apk_new modules ovl_dev pkgs quiet root_size root