bug-grub  

[bug #28642] GRUB2 1.97.1 - Strange behavior after using configfile command

Alexey Loukianov
Sun, 17 Jan 2010 17:56:43 -0800

Follow-up Comment #4, bug #28642 (project grub):

Figured it out!
Main point is that it looks like that:
a) "export" statement should be specified before the "set" statement for that
variable;
b) "export" statement should be supplied no matter is the variable set or not
in current configfile context.

So the following set of commands works normally:

sh:grub> export prefix
sh:grub> export root
sh:grub> set prefix=(hd0,5)/boot/grub
sh:grub> configfile (hd0,5)/boot/grub/grub.cfg
sh:grub> export prefix
sh:grub> export root
sh:grub> set prefix=(hd0,5)/boot/grub
sh:grub> configfile (hd0,5)/boot/grub/grub.cfg
sh:grub> export prefix
sh:grub> export root
sh:grub> set prefix=(hd0,5)/boot/grub
sh:grub> set root=(hd0,1)
sh:grub> chainloader +1
sh:grub> ls /
txtsetup.sif autorun.inf ...
sh:grub> boot 


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?28642>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-grub mailing list
Bug-grub@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-grub