set cmddevice when cmdpath is set

This commit is contained in:
Nick Owens 2016-06-01 13:55:45 -07:00
parent 68ae3c416b
commit 5470929309

View file

@ -131,6 +131,9 @@ grub_set_prefix_and_root (void)
{
char *cmdpath;
grub_env_set ("cmddevice", fwdevice);
grub_env_export ("cmddevice");
cmdpath = grub_xasprintf ("(%s)%s", fwdevice, fwpath ? : "");
if (cmdpath)
{