GNU GRUB - Bugs: bug #54482, grub does not set variables...
You are not allowed to post comments on this tracker with your current authentication level.
bug #54482: grub does not set variables consistently
Submitter: | Thomas Schweikle <tps800> | ||
Submitted: | Thu 09 Aug 2018 03:26:29 PM UTC | ||
Category: | Configuration | Severity: | Major |
Priority: | 5 - Normal | Item Group: | None |
Status: | None | Privacy: | Public |
Assigned to: | None | Originator Name: | |
Open/Closed: | Open | Release: | 2.02 |
Release: | Reproducibility: | None | |
Planned Release: | None |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follows 1 latest change.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2018-08-09 | tps800 | Carbon-Copy | - | Added -email is unavailable- |
Powered by Savane 3.13-02a9.
Corresponding source code
grub does not set variables consistently:
root="tftp"
prefix="(tftp,172.18.8.1)/grub"
cmdpath="(tftp,172.18.8.1)grub/i386-pc"
locale_dir="/grub/locale"
themes_dir="grub/themes"
this is without any configuration file. "themes_dir" seems only set if a themes directory exists.
Resolving any of these it it depends on prefix what is seen:
cmdpath -> (tftp,172.18.8.1)/grub/i386-pc -> is not expanded
locale_dir -> (tftp,172.18.8.1)/grub/locale
themes_dir -> (tftp,172.18.8.1)/grub/grub/themes
Accessing "root" leads to "disk tftp not found"
as soon as "root" is set to "(tftp)" it will work as expected. But as a side effect it sets "prefix" to "(tftp)".
Shouldn't grub set all Variables refering "root" and "prefix" the same way? Aka:
root="(tftp,172.18.8.1)"
prefix="(tftp,172.18.8.1)/grub"
cmdpath="(tftp,172.18.8.1)/grub/i386-pc"
locale_dir="(tftp,172.18.8.1)/grub/locale"
themes_dir="(tftp,172.18.8.1)/grub/themes"
or if it is expected them to be relative to an absolute device:
root="(tftp,172.18.8.1)"
prefix="(tftp,172.18.8.1)grub"
cmdpath="(tftp,172.18.8.1)grub/i386-pc"
locale_dir="(tftp,172.18.8.1)grub/locale"
themes_dir="(tftp,172.18.8.1)grub/themes"
or completely relative paths:
root="(tftp,172.18.8.1)"
prefix="grub"
cmdpath="i386-pc"
locale_dir="locale"
themes_dir="themes"
or "root" depending on "net_default_server":
net_default_server="172.18.8.1"
root="(tftp)"
The way it is done now leads to a mess of different necessary setups if using these variables any to make it more annoying to different behavior depending on other variables.