[Bug 811699] New: Grub does not use correct /boot partition after kernel upgrade
https://bugzilla.novell.com/show_bug.cgi?id=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c0 Summary: Grub does not use correct /boot partition after kernel upgrade Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: Other OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: s91066@yahoo.gr QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0 After a kernel upgrade, Grub menu has the new entry. However, the root= command is wrong. Specifically, yast is not using the correct partition of /boot. Reproducible: Always Steps to Reproduce: 1. Install a VM (either in a VMWare Player or a VirtualBox) with openSUSE 12.2 with: * One SCSI controller ** At (0,0) position add one HDD of 250MB (/boot) ** At (0,1) position add one HDD for the / 2. Install system, boot and upgrade the kernel 3. Grub will not write the correct entries in /boot/grub/menu.lst. * Instead of root=(hd0,0) it will write root=(hd0) Actual Results: System is not bootable, manual actions are needed. -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c1 --- Comment #1 from Peter Tselios <s91066@yahoo.gr> 2013-03-26 16:37:18 UTC --- It appears that even 12.3 has the same issue. -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c FeiXiang Zhang <fxzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |duwe@suse.com |ovo.novell.com | -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c2 --- Comment #2 from Peter Tselios <s91066@yahoo.gr> 2013-04-02 06:53:25 UTC --- I just did an zypper lu and found that I had to upgrade grub2. I did and the result was a buggy menu. rpm -qa | grep -i grub2 grub2-branding-openSUSE-12.2-11.6.15.noarch grub2-2.00-1.6.1.i586 =============================== # Modified by YaST2. Last modification on Tue Mar 26 12:55:12 EET 2013 # THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader # For the new kernel it try to figure out old parameters. In case we are not able to recognize it (e.g. change of flavor or strange install order ) it it use as fallback installation parameters from /etc/sysconfig/bootloader default 0 timeout 8 gfxmenu (hd0,0)/message ###Don't change this comment - YaST2 identifier: Original name: linux### title Desktop -- openSUSE 12.2 - 3.4.33-2.24 root (hd0,0) kernel /vmlinuz-3.4.33-2.24-desktop root=/dev/mapper/VGDisk-LVRoot splash=silent quiet showopts vga=0x31a initrd /initrd-3.4.33-2.24-desktop ###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- openSUSE 12.2 - 3.4.33-2.24 root (hd0,0) kernel /vmlinuz-3.4.33-2.24-desktop root=/dev/mapper/VGDisk-LVRoot showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x336 initrd /initrd-3.4.33-2.24-desktop ###Don't change this comment - YaST2 identifier: Original name: linux### title openSUSE 12.2 root (hd0,0) kernel /vmlinuz root=/dev/VGDisk/LVRoot splash=silent quiet showopts vga=0x31a initrd /initrd ============================================================ Now, after the yesterday's update, I have: rpm -qa | grep -i grub2 grub2-2.00-1.23.1.i586 grub2-branding-opcat /boot/grub/menu.lst # Modified by YaST2. Last modification on Mon Apr 1 16:39:57 EEST 2013 # THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader # For the new kernel it try to figure out old parameters. In case we are not able to recognize it (e.g. change of flavor or strange install order ) it it use as fallback installation parameters from /etc/sysconfig/bootloader default 1 timeout 8 gfxmenu (hd0,0)/message ###Don't change this comment - YaST2 identifier: Original name: linux### title GNU GRUB 2 -- openSUSE 12.2 - GNU GRUB 2 kernel (hd0)/grub2/core.img root=/dev/mapper/VGDisk-LVRoot splash=silent quiet showopts vga=0x31a ###Don't change this comment - YaST2 identifier: Original name: linux### title Desktop -- openSUSE 12.2 - 3.4.33-2.24 root (hd0,0) kernel /vmlinuz-3.4.33-2.24-desktop root=/dev/mapper/VGDisk-LVRoot splash=silent quiet showopts vga=0x31a initrd /initrd-3.4.33-2.24-desktop ###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- openSUSE 12.2 - 3.4.33-2.24 root (hd0,0) kernel /vmlinuz-3.4.33-2.24-desktop root=/dev/mapper/VGDisk-LVRoot showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x336 initrd /initrd-3.4.33-2.24-desktop ###Don't change this comment - YaST2 identifier: Original name: linux### title openSUSE 12.2 root (hd0,0) kernel /vmlinuz root=/dev/VGDisk/LVRoot splash=silent quiet showopts vga=0x31a initrd /initrd You have new mail in /var/spool/mail/root enSUSE-12.2-11.12.1.noarch And since yast2 bootloader run, the new menu is: cat /boot/grub/menu.lst # Modified by YaST2. Last modification on Mon Apr 1 16:39:57 EEST 2013 # THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader # For the new kernel it try to figure out old parameters. In case we are not able to recognize it (e.g. change of flavor or strange install order ) it it use as fallback installation parameters from /etc/sysconfig/bootloader default 1 timeout 8 gfxmenu (hd0,0)/message ###Don't change this comment - YaST2 identifier: Original name: linux### title GNU GRUB 2 -- openSUSE 12.2 - GNU GRUB 2 kernel (hd0)/grub2/core.img root=/dev/mapper/VGDisk-LVRoot splash=silent quiet showopts vga=0x31a ###Don't change this comment - YaST2 identifier: Original name: linux### title Desktop -- openSUSE 12.2 - 3.4.33-2.24 root (hd0,0) kernel /vmlinuz-3.4.33-2.24-desktop root=/dev/mapper/VGDisk-LVRoot splash=silent quiet showopts vga=0x31a initrd /initrd-3.4.33-2.24-desktop ###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- openSUSE 12.2 - 3.4.33-2.24 root (hd0,0) kernel /vmlinuz-3.4.33-2.24-desktop root=/dev/mapper/VGDisk-LVRoot showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x336 initrd /initrd-3.4.33-2.24-desktop ###Don't change this comment - YaST2 identifier: Original name: linux### title openSUSE 12.2 root (hd0,0) kernel /vmlinuz root=/dev/VGDisk/LVRoot splash=silent quiet showopts vga=0x31a initrd /initrd ===================== Obsiously, there is no (hd0), since the disk **is** partitioned. -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c3 --- Comment #3 from Peter Tselios <s91066@yahoo.gr> 2013-04-06 13:53:16 UTC --- Same issue exists with the 12.3 versions too. I just did a zypper dup and the same issue arise. -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c4 --- Comment #4 from Peter Tselios <s91066@yahoo.gr> 2013-11-25 09:05:05 UTC --- Exactly the SAME issue after the upgrade to 13.1: Some additional information: ------------------------------------------------------------- cat /etc/grub.conf setup --stage2=/boot/grub/stage2 --force-lba (hd0,0) (hd0,0) setup --stage2=/boot/grub/stage2 --force-lba (hd0) (hd0,0) quit ------------------------------------------------------------- cat /boot/grub/menu.lst # Modified by YaST2. Last modification on Tue Nov 19 21:18:55 EET 2013 # THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader # For the new kernel it try to figure out old parameters. In case we are not able to recognize it (e.g. change of flavor or strange install order ) it it use as fallback installation parameters from /etc/sysconfig/bootloader default 0 timeout 5 ##YaST - generic_mbr gfxmenu (hd0,0)/message ##YaST - activate ###Don't change this comment - YaST2 identifier: Original name: linux### title Desktop -- openSUSE - 3.11.6-4 root (hd0) kernel /vmlinuz-3.11.6-4-desktop root=/dev/mapper/VGDisk-LVRoot resume=/dev/disk/by-uuid/ac82d4b0-3b8e-418e-bf8e-046d930cfe57 splash=silent quiet showopts vga=0x31b initrd /initrd-3.11.6-4-desktop ###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- openSUSE - 3.11.6-4 root (hd0) kernel /vmlinuz-3.11.6-4-desktop root=/dev/mapper/VGDisk-LVRoot showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x336 initrd /initrd-3.11.6-4-desktop ------------------------------------------------------------- Note: The gfxmenu is **correctly** set The root statement is **WRONG** The correct statement is root (hd0,0). -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c Peter Tselios <s91066@yahoo.gr> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Component|YaST2 |Bootloader AssignedTo|duwe@suse.com |jsrain@suse.com Product|openSUSE 12.2 |openSUSE 13.1 Target Milestone|--- |Final OS/Version|openSUSE 12.2 |openSUSE 13.1 -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c Jiri Srain <jsrain@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsrain@suse.com |snwint@suse.com -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c5 Steffen Winterfeldt <snwint@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |s91066@yahoo.gr --- Comment #5 from Steffen Winterfeldt <snwint@suse.com> 2013-11-25 13:52:37 CET --- Please attach /var/log/YaST2/ and /var/log/pbl.log. -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c7 Peter Tselios <s91066@yahoo.gr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|s91066@yahoo.gr | --- Comment #7 from Peter Tselios <s91066@yahoo.gr> 2014-02-11 08:32:21 UTC --- Created an attachment (id=577983) --> (http://bugzilla.novell.com/attachment.cgi?id=577983) YaST2 log files. -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c8 Josef Reidinger <jreidinger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |jreidinger@suse.com InfoProvider| |s91066@yahoo.gr --- Comment #8 from Josef Reidinger <jreidinger@suse.com> 2014-03-13 14:23:33 UTC --- Torsten - it is grub1 Peter - I check logs and problem looks like in strange fstab. Can you please upload it here? as in logs I see there '/boot' => '/dev/disk/by-uuid/"aa0ca623-c2c2-4fb9-baa9-0dc1d27c5c53"', but in system is /dev/disk/by-uuid/aa0ca623-c2c2-4fb9-baa9-0dc1d27c5c53 (without quotes, so it doesn't match ) -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c9 --- Comment #9 from Peter Tselios <s91066@yahoo.gr> 2014-06-06 13:03:09 UTC --- Created an attachment (id=593688) --> (http://bugzilla.novell.com/attachment.cgi?id=593688) The menu.lst of the affected. The menu.lst of the affected. -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c10 --- Comment #10 from Peter Tselios <s91066@yahoo.gr> 2014-06-06 13:12:49 UTC --- Hi Josef, Sorry for the late response. For the moment, I have no access to the system that forced me to fill the original bug report. However, today, I experienced the exat same issue with my home server, a 12.3 machine that so far had ZERO problems! Please find attached the menu.lst of new affected system. ============================================================================= cat /etc/grub.conf setup --stage2=/boot/grub/stage2 --force-lba (hd0) (hd0,0) setup --stage2=/boot/grub/stage2 --force-lba (hd0,0) (hd0,0) quit ============================================================================= server:~ # cat /etc/fstab LABEL=BootPart /boot ext4 defaults 1 2 /dev/sda2 swap swap pri=42 0 0 ## LVM /dev/mapper/SRVSYS-SRVROOT / ext3 noatime,nodiratime 1 1 /dev/mapper/SRVSYS-SRVHOME /home ext3 noatime,nodiratime 1 2 proc /proc proc defaults 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 sysfs /sys sysfs noauto 0 0 ============================================================================= -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c11 --- Comment #11 from Josef Reidinger <jreidinger@suse.com> 2014-06-06 13:22:06 UTC --- if it is different system, then please attach logs from this system. Thanks -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c12 --- Comment #12 from Peter Tselios <s91066@yahoo.gr> 2014-06-10 10:02:34 UTC --- OK, files uploaded. -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c13 --- Comment #13 from Peter Tselios <s91066@yahoo.gr> 2014-06-10 10:23:10 UTC --- Created an attachment (id=594008) --> (http://bugzilla.novell.com/attachment.cgi?id=594008) pbl.log of new system -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c14 --- Comment #14 from Peter Tselios <s91066@yahoo.gr> 2014-06-10 10:24:46 UTC --- Created an attachment (id=594009) --> (http://bugzilla.novell.com/attachment.cgi?id=594009) y2log of new system -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c15 Peter Tselios <s91066@yahoo.gr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|s91066@yahoo.gr | --- Comment #15 from Peter Tselios <s91066@yahoo.gr> 2014-06-11 08:53:31 UTC --- I believe that the information are uploaded -- 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=811699 https://bugzilla.novell.com/show_bug.cgi?id=811699#c16 Peter Tselios <s91066@yahoo.gr> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 - Medium |P2 - High --- Comment #16 from Peter Tselios <s91066@yahoo.gr> 2014-07-16 06:36:26 UTC --- Hello, I just completed an upgrade (zypper up && zypper dup) of my home server from 12.3 to 13.1. The error is still there. The /boot/grub/menu.lst reports as a root device the hd0: root(hd0) Previous entries are OK, but the new ones not. ============================================================================= cat /etc/grub.conf setup --stage2=/boot/grub/stage2 --force-lba (hd0) (hd0,0) setup --stage2=/boot/grub/stage2 --force-lba (hd0,0) (hd0,0) quit ============================================================================= -- 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