diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-04-28 21:51:21 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-04-28 21:51:21 -0700 |
commit | 50c5d8683be03ff9212aed2a99d8928e0ad2641f (patch) | |
tree | 934b9d199bd73b72deb8638c0f4fadb4f1e192d2 | |
parent | 5869c2d6216298b48d66fcdf0aa9de2937479338 (diff) | |
download | syslinux-50c5d8683be03ff9212aed2a99d8928e0ad2641f.tar.gz |
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>
-rw-r--r-- | com32/mboot/mboot.c | 5 |
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; |