URL:
<http://savannah.gnu.org/bugs/?50861>
Summary: saved_entry is read from environment block without
GRUB_DEFAULT=saved
Project: GNU GRUB
Submitted by: xuiqzy
Submitted on: Sun 23 Apr 2017 05:40:20 PM UTC
Category: Booting
Severity: Major
Priority: 5 - Normal
Item Group: Software Error
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release:
Release: other
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Details:
On Grub 2.02~rc2, when setting the saved_entry variable for example with the
grub-reboot tool, the next boot this variable is read and the matching entry
is booted.
But this is done regardless of the setting of GRUB_DEFAULT, which should
control this setting according to the documentation. It's the same behavior
whether it's set to a specific menuentry or to 0 (as in the example below).
When generating the grub.cfg config file the following code is generated,
which is probably the problematic part:
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50861>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-grub