aboutsummaryrefslogtreecommitdiff
path: root/testsuite/rootfs-pristine/test-modprobe/module-param-kcmdline7/proc/cmdline
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2021-02-12 01:45:22 -0800
committerLucas De Marchi <lucas.demarchi@intel.com>2021-02-15 11:53:43 -0800
commitd3a1fe67b64cad103ff4f93dfd9f2cf19cab09ba (patch)
treef9145f603b88ab905ae143e34751828f8cca686d /testsuite/rootfs-pristine/test-modprobe/module-param-kcmdline7/proc/cmdline
parent01ed9af61e239b40514edf527ac87c79377266ac (diff)
downloadkmod-d3a1fe67b64cad103ff4f93dfd9f2cf19cab09ba.tar.gz
libkmod-config: re-quote option from kernel cmdline
It was reported that grub mangles the kernel cmdline. It turns acpi_cpufreq.dyndbg="file drivers/cpufreq/acpi-cpufreq.c +mpf" into "acpi_cpufreq.dyndbg=file drivers/cpufreq/acpi-cpufreq.c +mpf" However, even though we could blame grub for doing that, the kernel happily accepts and re-quotes it when the module is built-in. So, it's better if kmod also understands it this way and does the same. Here we basically add additional code to un-mangle it, moving the quote in way that is acceptable to pass through init_module(). Note that the interface [f]init_module() gives us mandates the quote to be part of the value: the module name is not passed and the options are separated by space. Reported-by: Jiri Slaby <jirislaby@kernel.org> Tested-by: Jessica Yu <jeyu@kernel.org> Link: https://bugzilla.suse.com/show_bug.cgi?id=1181111#c10
Diffstat (limited to 'testsuite/rootfs-pristine/test-modprobe/module-param-kcmdline7/proc/cmdline')
-rw-r--r--testsuite/rootfs-pristine/test-modprobe/module-param-kcmdline7/proc/cmdline1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/rootfs-pristine/test-modprobe/module-param-kcmdline7/proc/cmdline b/testsuite/rootfs-pristine/test-modprobe/module-param-kcmdline7/proc/cmdline
new file mode 100644
index 0000000..86f9052
--- /dev/null
+++ b/testsuite/rootfs-pristine/test-modprobe/module-param-kcmdline7/proc/cmdline
@@ -0,0 +1 @@
+psmouse.foo parport.dyndbg="file drivers/parport/ieee1284_ops.c +mpf" quiet rw