legacy_initrd: Strip any additional arguments to initrd.

This commit is contained in:
Vladimir Serbinenko 2017-02-24 21:23:09 +00:00
parent f34ed1f53c
commit 641bb15fa4

View file

@ -517,7 +517,7 @@ grub_cmd_legacy_initrd (struct grub_command *mycmd __attribute__ ((unused)),
#endif
);
return cmd->func (cmd, argc, args);
return cmd->func (cmd, argc ? 1 : 0, args);
}
if (kernel_type == MULTIBOOT)
{