aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-04-28 21:51:21 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-04-28 21:51:21 -0700
commit50c5d8683be03ff9212aed2a99d8928e0ad2641f (patch)
tree934b9d199bd73b72deb8638c0f4fadb4f1e192d2 /com32
parent5869c2d6216298b48d66fcdf0aa9de2937479338 (diff)
downloadsyslinux-50c5d8683be03ff9212aed2a99d8928e0ad2641f.tar.gz
syslinux-50c5d8683be03ff9212aed2a99d8928e0ad2641f.tar.xz
syslinux-50c5d8683be03ff9212aed2a99d8928e0ad2641f.zip
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 <hpa@zytor.com>
Diffstat (limited to 'com32')
-rw-r--r--com32/mboot/mboot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/com32/mboot/mboot.c b/com32/mboot/mboot.c
index 41a5ef17..fc4f962a 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;