Merge pull request #27 from mischief/cmddevice

set cmddevice when cmdpath is set
This commit is contained in:
Nick Owens 2016-06-01 14:08:23 -07:00
commit a1724dace5

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)
{