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.