[Bug 873537] New: wrong entries in grub2 config after removing a bunch of kernels
https://bugzilla.novell.com/show_bug.cgi?id=873537 https://bugzilla.novell.com/show_bug.cgi?id=873537#c0 Summary: wrong entries in grub2 config after removing a bunch of kernels Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: jnelson-suse@jamponi.net QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 I had a bunch of kernels installed (because I'm running Tumbleweed and ) and none of the kernels in the 3.13 or 3.14 series seem to play nice with pulseaudio, so I removed them: rpm -e kernel-desktop-3.13.5-18.2.gbb654e2.x86_64 kernel-desktop-3.14.0-23.3.gfa168d7.x86_64 kernel-desktop-3.13.6-19.4.g4727218.x86_64 kernel-desktop-3.13.6-20.4.g0509ce5.x86_64 kernel-desktop-3.14.0-23.5.gfa168d7.x86_64 kernel-desktop-3.13.6-20.3.g0509ce5.x86_64 kernel-desktop-3.14.0-23.6.gfa168d7.x86_64 kernel-desktop-3.13.5-18.1.gbb654e2.x86_64 kernel-desktop-3.13.6-20.1.g0509ce5.x86_64 kernel-desktop-3.13.7-21.2.ga68bc7c.x86_64 kernel-desktop-3.13.5-18.3.gbb654e2.x86_64 After removal and reboot (expecting the system to use 3.11.10 kernel - only it and 3.11.6 remained after the above command) grub2 tried to boot 3.14 It would appear that removing the kernels doesn't remove the initrds: linux-k1fq:~ # rpm -qf /boot/* | grep -E 'initrd|kern|vml' | sort -u file /boot/initrd-3.11.6-4-desktop-initrd is not owned by any package file /boot/vmlinuz-3.13.5-18.gbb654e2-desktop is not owned by any package file /boot/vmlinuz-3.14.0-23.gfa168d7-desktop is not owned by any package kernel-desktop-3.11.10-7.1.x86_64 linux-k1fq:~ # So we have an initrd (but no kernel), and two kernels (but without their initrds), and the grub.cfg contains lines for all of the various misc. bits. Is it the fault of grub2 to find (partially installed/removed) kernels/initrds? Is it the fault of the kernel packages to not clean up after themselves? Both? linux-k1fq:~ # grep 'vml' /boot/grub2/grub.cfg linux /vmlinuz-3.14.0-23.gfa168d7-desktop root=/dev/mapper/luks-d764da6f-e050-464c-a6ea-9ba736b4eb82 splash=silent quiet showopts elevator=deadline usbcore.autosuspend=1 linux /vmlinuz-3.14.0-23.gfa168d7-desktop root=/dev/mapper/luks-d764da6f-e050-464c-a6ea-9ba736b4eb82 splash=silent quiet showopts elevator=deadline usbcore.autosuspend=1 linux /vmlinuz-3.14.0-23.gfa168d7-desktop root=/dev/mapper/luks-d764da6f-e050-464c-a6ea-9ba736b4eb82 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe linux /vmlinuz-3.13.5-18.gbb654e2-desktop root=/dev/mapper/luks-d764da6f-e050-464c-a6ea-9ba736b4eb82 splash=silent quiet showopts elevator=deadline usbcore.autosuspend=1 linux /vmlinuz-3.13.5-18.gbb654e2-desktop root=/dev/mapper/luks-d764da6f-e050-464c-a6ea-9ba736b4eb82 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe linux /vmlinuz-3.11.10-7-desktop root=UUID=244ae7b3-466a-40cc-8e47-c43bfdfaf6ee splash=silent quiet showopts elevator=deadline usbcore.autosuspend=1 linux /vmlinuz-3.11.10-7-desktop root=UUID=244ae7b3-466a-40cc-8e47-c43bfdfaf6ee showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe linux-k1fq:~ # Reproducible: Always Steps to Reproduce: 1. 2. 3. -- 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=873537
https://bugzilla.novell.com/show_bug.cgi?id=873537#c1
Jiri Srain
https://bugzilla.novell.com/show_bug.cgi?id=873537
https://bugzilla.novell.com/show_bug.cgi?id=873537#c2
Jon Nelson
Jon, to be sure: - there are partially installed kernels - grub2.cfg refers to kernels which don't exist?
I wonder especially about the 2nd part; no matter what the installed packager are (files in /boot are what matters), does grub2.cfg refer to a kernel which does not exist at all? And if it does and such kernel was uninstalled earlier, how was it uninstalled? Was it openSUSE kernel, some other?
Regarding the grub.cfg file (not grub2.cfg) referring to kernels which don't exist: The grub.cfg file is an accurate-ish representation of the contents of /boot. The "-ish" part comes in where only the 3.11.10 kernel *and* initrd are both present. Removing the 3.13.5 and 3.14.0-23 kernel *packagse* did not remove the /boot/vmlinuz-${version}... files. Removing the 3.11.6 kernel package didn't remove the 3.11.6 *initrd*. Removing the kernel packages didn't reset the /boot/initrd symlink to any version that exists. So, a bunch of issues, there. My *guess* is that grub2 is probably OK - it's finding kernels (regardless of whether they are complete or are installed by the rpm -- a reasonable and correct choice IMO) but the problem is that removing kernel packages doesn't appear to do the right thing. Yes, grub2.cfg is referring to a kernel that doesn't exist at all: file /boot/vmlinuz-3.14.0-23.gfa168d7-desktop is not owned by any package -- 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=873537
https://bugzilla.novell.com/show_bug.cgi?id=873537#c3
Jiri Srain
https://bugzilla.novell.com/show_bug.cgi?id=873537
https://bugzilla.novell.com/show_bug.cgi?id=873537#c4
Takashi Iwai
http://bugzilla.novell.com/show_bug.cgi?id=873537
Jiri Slaby
participants (1)
-
bugzilla_noreply@novell.com