[systemd-commits] src/modules-load

Michal Schmidt michich at kemper.freedesktop.org
Tue Jul 24 16:46:46 PDT 2012


 src/modules-load/modules-load.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b2fc39a6838f08e6050b681e0c93f95bc6176786
Author: Michal Schmidt <mschmidt at redhat.com>
Date:   Wed Jul 25 01:45:16 2012 +0200

    modules-load: fix kernel cmdline parsing

diff --git a/src/modules-load/modules-load.c b/src/modules-load/modules-load.c
index 3f3b018..d6bc16d 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;
                         }



More information about the systemd-commits mailing list