[Bug 804405] New: /sbin/update-bootloader generates bad grub menu.lst entries "(hd0)" instead of "(hd0,1)" for UUID mounts
https://bugzilla.novell.com/show_bug.cgi?id=804405 https://bugzilla.novell.com/show_bug.cgi?id=804405#c0 Summary: /sbin/update-bootloader generates bad grub menu.lst entries "(hd0)" instead of "(hd0,1)" for UUID mounts Classification: openSUSE Product: openSUSE Factory Version: 12.3 Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: burnus@gmx.de QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 If a new kernel gets installed, /boot/grub/menu.lst gets updated and will contain: ###Don't change this comment - YaST2 identifier: Original name: linux### title openSUSE 13.1 Milestone 0 - 3.7.7-2 root (hd0) kernel /boot/vmlinuz-3.7.7-2-default root=/dev/disk/by-uuid/"4302de21-b2e1-4c02-a551-29484df9d9ea" splash=verbose resume=/dev/hda1 showopts splash=verbose vga=0x31b initrd /boot/initrd-3.7.7-2-default The "root (hd0)" doesn't work - one has to change it manually to "(hd0,1)". The problem seems to be that the mount happens using a UUID as the following example shows: #! /usr/bin/perl use strict; use Bootloader::Core::GRUB; my $obj_ref = Bootloader::Core::GRUB->new (); my $gr = $obj_ref->UnixDev2GrubDev ("/dev/sda2"); print 'result:'.$gr."\n"; # (hd0,1) my $gr = $obj_ref->UnixDev2GrubDev ("/dev/disk/by-uuid/4302de21-b2e1-4c02-a551-29484df9d9ea"); print 'result:'.$gr."\n"; # (hd0,1) Possibly the easiest way to go back from an UUID to a device is to read the link: # ls -l /dev/disk/by-uuid/4302de21-b2e1-4c02-a551-29484df9d9ea lrwxrwxrwx 1 root root 10 19. Feb 08:19 /dev/disk/by-uuid/4302de21-b2e1-4c02-a551-29484df9d9ea -> ../../sda2 Reproducible: Always -- 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=804405 https://bugzilla.novell.com/show_bug.cgi?id=804405#c1 --- Comment #1 from Tobias Burnus <burnus@gmx.de> 2013-02-19 11:13:29 UTC ---
my $gr = $obj_ref->UnixDev2GrubDev ("/dev/disk/by-uuid/4302de21-b2e1-4c02-a551-29484df9d9ea"); print 'result:'.$gr."\n"; # (hd0,1)
That's a copy&paste typo: This one outputs the bogus: "(hd0)" -- 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=804405 https://bugzilla.novell.com/show_bug.cgi?id=804405#c Lukas Ocilka <locilka@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=804405 https://bugzilla.novell.com/show_bug.cgi?id=804405#c2 Steffen Winterfeldt <snwint@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |burnus@gmx.de --- Comment #2 from Steffen Winterfeldt <snwint@suse.com> 2013-02-20 13:35:15 CET --- please add logs: /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=804405 https://bugzilla.novell.com/show_bug.cgi?id=804405#c3 Tobias Burnus <burnus@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|burnus@gmx.de | --- Comment #3 from Tobias Burnus <burnus@gmx.de> 2013-02-20 13:52:30 UTC --- Created an attachment (id=525489) --> (http://bugzilla.novell.com/attachment.cgi?id=525489) pbl.log.bz2 -- 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=804405 https://bugzilla.novell.com/show_bug.cgi?id=804405#c Ihno Krumreich <ihno@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Other |Linux -- 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=804405 https://bugzilla.novell.com/show_bug.cgi?id=804405#c Alberto Planas Dominguez <aplanas@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| | GOLD -- 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