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.