[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #50861] saved_entry is read from environment block without GRUB_DEF

From: xuiqzy
Subject: [bug #50861] saved_entry is read from environment block without GRUB_DEFAULT=saved
Date: Sun, 23 Apr 2017 13:40:21 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; U; Linux x86_64) AppleWebKit/604.5.7 (KHTML, like Gecko) Chrome/56.0.2847.64 Safari/604.5.7


                 Summary: saved_entry is read from environment block without
                 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: other
         Reproducibility: Every Time
         Planned Release: None



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
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
   set default="0"


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]