From 50c5d8683be03ff9212aed2a99d8928e0ad2641f Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 28 Apr 2009 21:51:21 -0700 Subject: [PATCH] mboot: include module filenames in the command line Grub includes the kernel and module filenames in the command lines it passes, so match that behavior and don't strip them off. Signed-off-by: H. Peter Anvin --- com32/mboot/mboot.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/com32/mboot/mboot.c b/com32/mboot/mboot.c index 41a5ef1..fc4f962 100644 --- a/com32/mboot/mboot.c +++ b/com32/mboot/mboot.c @@ -121,7 +121,10 @@ static int get_modules(char **argv, struct module_data **mdp) } printf("ok\n"); - argp++; + /* + * Note: Grub includes the kernel filename in the command line, so we + * want to match that behavior. + */ arglen = 0; for (argx = argp; *argx && strcmp(*argx, module_separator); argx++) arglen += strlen(*argx)+1; -- 2.7.4