[Bug 856391] New: grub2-reboot sets default boot entry permanently
https://bugzilla.novell.com/show_bug.cgi?id=856391 https://bugzilla.novell.com/show_bug.cgi?id=856391#c0 Summary: grub2-reboot sets default boot entry permanently Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: mihai.petracovici@gmail.com QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 If I use grub2-reboot (either directly from the cmdline or from the kde restart button) to set a grub entry to boot into on the next boot, this setting is not cleared after a reboot. Rebooting multiple times still makes my machine boot into that entry and the grub menu is never displayed again. I have to clear the next_entry variable with grub2-editenv - unset next_entry in order to get my grub menu back. I am running openSUSE 13.1 installed alongside Windows on a GPT partitioned disk and using UEFI boot. Reproducible: Always Steps to Reproduce: 1. Set a boot entry to boot on restart using grub2-reboot. For example, sudo grub2-reboot 'openSUSE 13.1, with Linux 3.10.20-1-desktop' 2. Reboot and it will boot into whatever entry you set before. 3. Reboot again. Actual Results: You still boot automatically into the entry set by grub2-reboot. You cannot get to the grub menu in any way. Expected Results: After the second reboot, the grub menu should have reappeared. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=856391
https://bugzilla.novell.com/show_bug.cgi?id=856391#c
Mihai Petracovici
https://bugzilla.novell.com/show_bug.cgi?id=856391
https://bugzilla.novell.com/show_bug.cgi?id=856391#c
Jiri Srain
https://bugzilla.novell.com/show_bug.cgi?id=856391
https://bugzilla.novell.com/show_bug.cgi?id=856391#c1
--- Comment #1 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=856391
https://bugzilla.novell.com/show_bug.cgi?id=856391#c2
Mihai Petracovici
https://bugzilla.novell.com/show_bug.cgi?id=856391
https://bugzilla.novell.com/show_bug.cgi?id=856391#c3
Will Stephenson
https://bugzilla.novell.com/show_bug.cgi?id=856391
https://bugzilla.novell.com/show_bug.cgi?id=856391#c4
Andrey Borzenkov
If we can identify the cases where grub2-reboot cannot be used, we can suppress it in the kdm reboot dialog
GRUB does not support - writing to non-physical disks (LVM, MD RAID, crypto) - blocklists (required to write environment file) on the following filesystems: afs, btrfs, exfat, HFS+ with compression, minix, squashfs, ufs2, zfs. So as long as /boot/grub2/grubenv file is located on any of these, grub2 cannot write into it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=856391
https://bugzilla.novell.com/show_bug.cgi?id=856391#c5
Wolfgang Bauer
If we can identify the cases where grub2-reboot cannot be used, we can suppress it in the kdm reboot dialog
It would not suffice to suppress this in the kdm reboot dialog. As I just noticed, the same issue happens when you hibernate your system, because /usr/lib/pm-utils/sleep.d/99Zgrub calls grub2-once to set the default boot entry to the hibernated Linux system, and that in turn also calls grub2-reboot to do the actual work. So if this is going to be suppressed, it should be done in grub2-reboot itself instead, I think. PS: Why is this bug report marked as INVALID? IMHO this is a valid issue. By choosing a Windows boot entry in KDE's restart dialog you effectively lock yourself out of your Linux system and need a LiveCD or similar to repair that. Shouldn't it be reopened? Or should I maybe open a new bug about the hibernate issue? (but it is the same in the end) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=856391
https://bugzilla.novell.com/show_bug.cgi?id=856391#c6
Wolfgang Bauer
https://bugzilla.novell.com/show_bug.cgi?id=856391
https://bugzilla.novell.com/show_bug.cgi?id=856391#c7
--- Comment #7 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=856391
https://bugzilla.novell.com/show_bug.cgi?id=856391#c8
--- Comment #8 from Andrey Borzenkov
A quick workaround is use boot script to reset this flag. Anyone here would oppose this ?
That will work for suspend to disk only. For grub-reboot into Window this script never gets chance to run, because grub will always boot Windows without any timeout. I can think of - block grub-reboot for known cases. Only partial solution - missing functionality and does not help if user manually sets variable - support checking e.g. Pressed SHIFT on boot and display menu. Not sure what it involves and how portable it is. Of course, we still need to reset this flag after we managed to boot openSUSE. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=856391
https://bugzilla.novell.com/show_bug.cgi?id=856391#c9
--- Comment #9 from Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=856391
https://bugzilla.novell.com/show_bug.cgi?id=856391#c10
Fabian Vogt
http://bugzilla.novell.com/show_bug.cgi?id=856391
Lars Müller
http://bugzilla.novell.com/show_bug.cgi?id=856391
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=856391
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=856391
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=856391
--- Comment #19 from Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=856391
--- Comment #20 from Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=856391
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=856391
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=856391
Luca Beltrame
http://bugzilla.novell.com/show_bug.cgi?id=856391
Nico Kruber
http://bugzilla.novell.com/show_bug.cgi?id=856391
Flavio Castelli
participants (1)
-
bugzilla_noreply@novell.com