mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 06:22:43 +00:00
kernel-install remove
does not clean up obsolete saved_entry in /boot/grub2/grubenv
#14
Labels
No labels
exclusivescoped
label
exclusivescoped
label2
scoped/label
testlabel
Qality
Blocker
Quality
FE
release
39
release
40
release
41
release
42
release
rawhide
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rpms/grub2#14
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description of problem: Using
kernel-install add
to install a new kernel automatically moves grub's saved_entry to the new kernel. Butkernel-install remove
does not undo that, so that the saved entry points into the void, and the machine fails to boot. Version-Release number of selected component (if applicable): systemd-udev-249.11-1.fc35.x86_64 How reproducible: Always Steps to Reproduce: 1. Check original saved entry: grep saved_entry /boot/grub2/grubenv # saved_entry=a7173868d29543b4bf15bf4227230490-5.16.20-200.fc35.x86_64 2. Create and add a (fake) new kernel: truncate -s 10M /boot/vmlinuz-42.0.0; mkdir -p /lib/modules/42.0.0/ kernel-install add 42.0.0 /boot/vmlinuz-42.0.0 3. Check updated saved entry: grep saved_entry /boot/grub2/grubenv # saved_entry=ae4358d9a14347c2a646a3fe777b8740-42.0.0 4. Remove fake kernel again: rm /boot/vmlinuz-42.0.0 kernel-install remove 42.0.0 /boot/vmlinuz-42.0.0 5. Check saved entry: grep saved_entry /boot/grub2/grubenv # saved_entry=ae4358d9a14347c2a646a3fe777b8740-42.0.0 Actual results: saved entry is still the fake 42 kernel. Rebooting the VM (sometimes) fails; our previous F35 image builds curiously succeeded until now (this is part of cockpit's test suite), but the recent one in https://github.com/cockpit-project/bots/pull/3293 now fails. Expected results: Removing the currently saved kernel updates the default to the most recent installed kernel.