summaryrefslogtreecommitdiffstats
path: root/src/modules-load
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-07-25 01:45:16 +0200
committerMichal Schmidt <mschmidt@redhat.com>2012-07-25 01:46:11 +0200
commitb2fc39a6838f08e6050b681e0c93f95bc6176786 (patch)
treeb7e8ef2788c01ae3bee828a56081341b45091511 /src/modules-load
parentmain: set PR_SET_CHILD_REAPER for MANAGER_USER (diff)
downloadsystemd-b2fc39a6838f08e6050b681e0c93f95bc6176786.tar.xz
systemd-b2fc39a6838f08e6050b681e0c93f95bc6176786.zip
modules-load: fix kernel cmdline parsing
Diffstat (limited to 'src/modules-load')
-rw-r--r--src/modules-load/modules-load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules-load/modules-load.c b/src/modules-load/modules-load.c
index 3f3b01852b..d6bc16d340 100644
--- a/src/modules-load/modules-load.c
+++ b/src/modules-load/modules-load.c
@@ -92,14 +92,14 @@ static int parse_proc_cmdline(void) {
if (startswith(word, "modules-load=")) {
- r = add_modules(word + 7);
+ r = add_modules(word + 13);
if (r < 0)
goto finish;
} else if (startswith(word, "rd.modules-load=")) {
if (in_initrd()) {
- r = add_modules(word + 10);
+ r = add_modules(word + 16);
if (r < 0)
goto finish;
}