set cmddevice when cmdpath is set

This commit is contained in:
Nick Owens 2016-06-01 13:55:45 -07:00 committed by David Michael
parent 10c77ec6b0
commit f441ad6625
1 changed files with 3 additions and 0 deletions

View File

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