[Bug 755183] New: Grub2 will left stale kernel entry in it's config when update kernel
https://bugzilla.novell.com/show_bug.cgi?id=755183 https://bugzilla.novell.com/show_bug.cgi?id=755183#c0 Summary: Grub2 will left stale kernel entry in it's config when update kernel Classification: openSUSE Product: openSUSE 12.2 Version: Milestone 1 Platform: x86 OS/Version: openSUSE 12.2 Status: NEW Severity: Major Priority: P5 - None Component: Bootloader AssignedTo: mchang@suse.com ReportedBy: mchang@suse.com QAContact: jsrain@suse.com Found By: --- Blocker: --- I did 12.1 installation with grub2 as default bootloader (use dud for patching the installation dvd). When installation finished, tried to update the kernel via zypper: $ zypper update kernel-desktop Kernel updated from 3.1.0-1.2-desktop to 3.1.9-1.4 Then I saw resulting config containing entry for removed kernel image (/boot/vmlinuz-3.1.0-1.2-desktop). $ ls /boot/vmlinuz-3.1.0-1.2-desktop ls: cannot access /boot/vmlinuz-3.1.0-1.2-desktop: No such file or directory Reproduce Step: 1. zypper update kernel-desktop Expect Result remove obselete kernel entry in grub2's config, if it was removed. Actual Result: removed and obselete kernel remains in grub2's config. PS. I report against 12.2 milestone because I though it had same issue, quilt obvious to me .. -- 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=755183 https://bugzilla.novell.com/show_bug.cgi?id=755183#c1 --- Comment #1 from Michael Chang <mchang@suse.com> 2012-04-02 07:12:08 UTC --- Created an attachment (id=484395) --> (http://bugzilla.novell.com/attachment.cgi?id=484395) the grub2 config after kernel update -- 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=755183 https://bugzilla.novell.com/show_bug.cgi?id=755183#c2 --- Comment #2 from Michael Chang <mchang@suse.com> 2012-04-02 07:31:21 UTC --- $ rpm -q --scripts kernel-desktop % postinstall scriptlet run_bootloader () { if [ -f /etc/sysconfig/bootloader ] && [ -f /boot/grub/menu.lst -o \ -f /etc/lilo.conf -o \ -f /etc/elilo.conf -o \ -f /etc/zipl.conf ] then return 0 else return 1 fi } if [ -f /etc/fstab -a ! -e /.buildenv ] ; then initrd=initrd-3.1.9-1.4-desktop if [ -e /boot/$initrd -o ! -e /lib/modules/3.1.9-1.4-desktop ] && \ run_bootloader ; then [ -e /boot/$initrd ] || initrd = if [ -x /usr/lib/bootloader/bootloader_entry ]; then /usr/lib/bootloader/bootloader_entry \ add \ desktop \ 3.1.9-1.4-desktop \ vmlinuz-3.1.9-1.4-desktop \ $initrd else message_install_bl fi fi % postunistall scriptlet if [ -f /etc/fstab ]; then if [ -x /usr/lib/bootloader/bootloader_entry ]; then /usr/lib/bootloader/bootloader_entry \ remove \ desktop \ 3.1.9-1.4-desktop \ vmlinuz-3.1.9-1.4-desktop \ initrd-3.1.9-1.4-desktop fi fi -- 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=755183 https://bugzilla.novell.com/show_bug.cgi?id=755183#c3 Michael Chang <mchang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #3 from Michael Chang <mchang@suse.com> 2012-04-02 07:39:00 UTC --- Some analysis from kernel package's install scripts 1. grub2 config file (/boot/grub2/grub.cfg or /boot/grub2-efi/grub.cfg) is missing in function run_bootloader list .. this is fine IMO, as the result is a not-checked-for-existence $initrd pass to /usr/lib/bootloader_entry script. The fact: Grub2 ignores the arguments passed and use it own script to detect what had to add or not. 2. Should looked at "/usr/lib/bootloader_entry" to know what's going wrong. -- 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=755183 https://bugzilla.novell.com/show_bug.cgi?id=755183#c4 --- Comment #4 from Michael Chang <mchang@suse.com> 2012-04-03 03:11:43 UTC --- Created an attachment (id=484549) --> (http://bugzilla.novell.com/attachment.cgi?id=484549) patch for bootloader_entry Test the patch and it works to fix this issue, will submit it for next MS update. -- 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=755183 https://bugzilla.novell.com/show_bug.cgi?id=755183#c5 --- Comment #5 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-04-23 12:00:09 CEST --- This is an autogenerated message for OBS integration: This bug (755183) was mentioned in https://build.opensuse.org/request/show/115069 Factory / perl-Bootloader -- 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=755183 https://bugzilla.novell.com/show_bug.cgi?id=755183#c6 --- Comment #6 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-04-27 13:00:09 CEST --- This is an autogenerated message for OBS integration: This bug (755183) was mentioned in https://build.opensuse.org/request/show/115825 Factory / perl-Bootloader -- 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=755183 https://bugzilla.novell.com/show_bug.cgi?id=755183#c7 Michael Chang <mchang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #7 from Michael Chang <mchang@suse.com> 2012-07-05 07:08:11 UTC --- Close as the fix has been is factory. -- 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.
participants (1)
-
bugzilla_noreply@novell.com