Bug#614143: os-prober: generated linux entries don't use UUIDs for root= parameter
Package: os-prober
Version: 1.44
Severity: normal
Tags: sid patch
Hi,
As you probably know, os-prober is used by grub-mkconfig to generate grub.cfg
entries for other operating systems. Today I ran update-grub in order for it to
pick up the Fedora 14 Kernel I had installed today. The command line it
generated looked like this:
linux /boot/vmlinuz-2.6.35.6-45.fc14.x86_64 root=/dev/sdb3
But with the Fedora kernel the relevant device isn't called /dev/sdb3 but
/dev/sda3, so this command line doesn't work, and I guess UUIDs should be used
instead. The following change to /usr/share/os-prober/common.sh did the trick
for me: replace
mapdevfs () {
readlink -f "$1"
}
with
mapdevfs() {
echo "/dev/disk/by-uuid/$(blkid -o value -s UUID "$1")"
}
Perhaps this can be applied upstream?
Reply to: