Bug#494383: grub-pc: Grub2 cannot find LVM volume groups with a dash (-) in the name
Felix Zielcke
fzielcke at z-51.de
Sat Aug 9 12:55:54 UTC 2008
Hi,
Am Samstag, den 09.08.2008, 12:26 +0200 schrieb Felix Zielcke:
> fz-vm:~# ls /dev/mapper/
> control linux--vg-lvol0
>
And again it wasn't that clear with my first mail :(
fz-vm:~# l /dev/linux* /dev/mapper/
/dev/linux-vg:
insgesamt 0
lrwxrwxrwx 1 root root 27 9. Aug 14:49 lvol0
-> /dev/mapper/linux--vg-lvol0
/dev/linuxvg:
insgesamt 0
lrwxrwxrwx 1 root root 25 9. Aug 14:49 lvol0
-> /dev/mapper/linuxvg-lvol0
/dev/mapper/:
insgesamt 0
crw-rw---- 1 root root 10, 60 9. Aug 14:49 control
brw-rw---- 1 root disk 253, 1 9. Aug 14:49 linux--vg-lvol0
brw-rw---- 1 root disk 253, 0 9. Aug 14:49 linuxvg-lvol0
Current upstream SVN shows me:
fz-vm:/dev/mapper# grub-probe /mnt/
error: no mapping exists for `linux--vg-lvol0'
grub-probe: error: no mapping exists for `linux--vg-lvol0'
If I change the double dash to one and mount it again then it works
fine.
This bug happens at least with recent udev/lvm2 from Debian unstable
with kernel.org 2.6.27-rc2
I failed to find out how to workaround this in GRUB and I'm a bit unsure
if we even should do this.
What happens if this is fixed in lvm2/udev/kernel (wherever it belongs
too) and what is with people who like to have 2 dashes in there vg name?
(Robert: In this LVM case I think it's not that bad that
debian-installer currently prefers LILO over GRUB 2 ;))
More information about the Pkg-grub-devel
mailing list