kmod/testsuite/rootfs-pristine
Lucas De Marchi d3a1fe67b6 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
2021-02-15 11:53:43 -08:00
..
test-blacklist/etc/modprobe.d testsuite: rename rootfs dir 2012-06-05 00:54:47 -03:00
test-dependencies/lib/modules/4.0.20-kmod testsuite: port test-dependencies to module-playground 2015-02-03 01:12:13 -02:00
test-depmod testsuite: depmod: add override test 2017-12-07 13:08:00 -08:00
test-init-load-resources/lib/modules/5.6.0 testsuite: add check for kmod_load_resources 2020-03-23 12:39:58 -07:00
test-init-load-resources-empty-builtin-aliases-bin/lib/modules/5.6.0 testsuite: add test for empty modules.builtin.aliases.bin 2020-12-27 16:40:08 -08:00
test-initstate/lib/modules/4.4.4 testsuite: test builtin state 2015-02-28 14:18:54 -03:00
test-loaded testsuite: rename rootfs dir 2012-06-05 00:54:47 -03:00
test-modinfo testsuite: fix modinfo test without openssl 2019-02-04 14:25:03 -08:00
test-modprobe libkmod-config: re-quote option from kernel cmdline 2021-02-15 11:53:43 -08:00
test-new-module testsuite: rename rootfs dir 2012-06-05 00:54:47 -03:00
test-rootfs testsuite: rename rootfs dir 2012-06-05 00:54:47 -03:00
test-tools tools: add basic versions of insert and remove 2015-03-07 12:09:51 -03:00
test-util testsuite: add more input cases to freadline_wrapped test 2015-01-21 10:18:07 -02:00
test-util2 testsuite: improve coverage of shared/util.h 2015-01-14 17:26:36 -02:00