URL: <http://savannah.gnu.org/bugs/?54482>
Summary: grub does not set variables consistently Project: GNU GRUB Submitted by: tps800 Submitted on: 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: Originator Email: Open/Closed: Open Discussion Lock: Any Release: Release: 2.02 Reproducibility: None Planned Release: None _______________________________________________________ Details: 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. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?54482> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/ _______________________________________________ Bug-grub mailing list Bug-grub@gnu.org https://lists.gnu.org/mailman/listinfo/bug-grub