[Bug 1175127] Re: grub2 does not propagate variable to submenu
Andreas Heinlein
1175127 at bugs.launchpad.net
Tue Jul 9 07:16:01 UTC 2013
As you can see from the discussion here:
https://lists.gnu.org/archive/html/grub-devel/2012-03/msg00050.html
this is currently by design. A submenu opens a new 'context' in grub
terms, and when you exit the context (go back to the main menu),
everything within the submenu context is lost. I personally do not like
this, too.
If you really need this functionality, someone has posted a patch in the
above thread. I don't know if it works, but you could give it a try.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1175127
Title:
grub2 does not propagate variable to submenu
Status in “grub2” package in Ubuntu:
New
Bug description:
Problem:
grub2 does not propagate variables to submenu -> menuentry. My defined variables defined in 40_custom and properly generated into grub.cfg after update-grub are not set up in submenu. Variables have content only on menuentry level but not in submenu. According to manual the content of variables should be propagated into submenu as well.
set variable=something #or/and
export variable=something
Does not work even if they are settled on the beginning of the grub.cfg
some of the variables defined in
How to reproduce problem:
just put some set variable=something in 40_custom , echo variable=$variable in submenu -> menuentry , update-grub and reboot. (I did not try grub-emu)
apt-cache policy grub2
grub2:
Installed: 2.00-13ubuntu3
Candidate: 2.00-13ubuntu3
Version table:
*** 2.00-13ubuntu3 0
500 http://localhost/ubuntu/ raring/universe amd64 Packages
500 http://uk.archive.ubuntu.com/ubuntu/ raring/universe amd64 Packages
Description: Ubuntu 13.04
Release: 13.04
Codename: raring
Kind Regards,
M.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1175127/+subscriptions
More information about the foundations-bugs
mailing list