Merge pull request #27 from mischief/cmddevice
set cmddevice when cmdpath is set
This commit is contained in:
commit
a1724dace5
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue