[Bug 1159205] New: KIWI: Wrong GRUB default entry when booting snapshot
http://bugzilla.opensuse.org/show_bug.cgi?id=1159205 Bug ID: 1159205 Summary: KIWI: Wrong GRUB default entry when booting snapshot Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: iforster@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- With our KIWI images, when selecting an older snapshot in the GRUB menu ("Start bootloader from a read-only snapshot" -> any entry), then the first entry "Help on bootable snapshot #<num>" will be selected instead of the actual bootable entry. For regular users this will just be an inconvenience compared to systems installed with YaST, but on automated systems, e.g. when using health-checker to automatically select an older snapshot if the default kernel or initrd did not boot correctly, this will break the boot completely - the system will be stuck in the help text. On systems installed with YaST, https://github.com/yast/yast-bootloader/blob/53bed387ab933f635fa3c5577161316... will set the default entry by using the entry's name (e.g. "openSUSE MicroOS" or "openSUSE Leap 15.1"). KIWI would need a similar mechanism to get this working. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1159205 Ignaz Forster <iforster@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bnc-team-screening@forge.pr |ms@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1159205 http://bugzilla.opensuse.org/show_bug.cgi?id=1159205#c1 Ignaz Forster <iforster@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|ms@suse.com |mchang@suse.com Summary|KIWI: Wrong GRUB default |Wrong GRUB default entry |entry when booting snapshot |when booting snapshot in | |our KIWI images --- Comment #1 from Ignaz Forster <iforster@suse.com> --- Digging deeper into the problem I'm meanwhile not convinced that this should be resolved in KIWI any more. GRUB already contains "grub2-btrfs-08-workaround-snapshot-menu-default-entry.patch", which is supposed to solve exactly this problem: It it supposed to set the default entry to the next entry if the help text is shown. Unfortunately the menu entry title, originally introduced in "grub2-btrfs-05-grub2-mkconfig.patch", is later changed by "grub2-btrfs-help-on-snapper-rollback.patch" - and the code is doing a string comparison against the old string. The obvious fix would be to change use the new string in the GRUB patch, but maybe we could be using a better mechanism than string comparison? (Would setting a certain class or id for the menuentry work?) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1159205 http://bugzilla.opensuse.org/show_bug.cgi?id=1159205#c2 Richard Brown <rbrown@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rbrown@suse.com --- Comment #2 from Richard Brown <rbrown@suse.com> --- *** Bug 1194574 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1159205 http://bugzilla.opensuse.org/show_bug.cgi?id=1159205#c3 Richard Brown <rbrown@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Critical --- Comment #3 from Richard Brown <rbrown@suse.com> --- Increasing severity as it blocks core functionality of SLE Micro/openSUSE MicroOS -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1159205 http://bugzilla.opensuse.org/show_bug.cgi?id=1159205#c4 Michael Chang <mchang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS --- Comment #4 from Michael Chang <mchang@suse.com> --- Thank you Ignaz and Richard. I will have a look tomorrow and update asap. (Sorry but now is a bit late to work in my timezone). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1159205 http://bugzilla.opensuse.org/show_bug.cgi?id=1159205#c5 Michael Chang <mchang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo? --- Comment #5 from Michael Chang <mchang@suse.com> --- Hi Ignaz and Richard Could you please verify test package in this project works for you or not ? https://build.opensuse.org/package/show/home:michael-chang:bsc:1159205/grub2 Thanks in advanced. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1159205 http://bugzilla.opensuse.org/show_bug.cgi?id=1159205#c6 Richard Brown <rbrown@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo? | --- Comment #6 from Richard Brown <rbrown@suse.com> --- Hi Michael, I can confirm it works..now I just need to get my system running secureboot again ;) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1159205 http://bugzilla.opensuse.org/show_bug.cgi?id=1159205#c7 Michael Chang <mchang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mchang@suse.com Flags| |needinfo?(mchang@suse.com) --- Comment #7 from Michael Chang <mchang@suse.com> --- (In reply to Richard Brown from comment #6)
Hi Michael, I can confirm it works..now I just need to get my system running secureboot again ;)
Hi Richard, Thank you! I will carry it out the submission to openSUSE and SLE maintenance update. Set needinfo to myself. -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com