Comment 15 for bug 341928

Revision history for this message
Colin Watson (cjwatson) wrote :

I wouldn't expect there to be a blkid.tab in the installer anyway. /etc/lvm/cache/.cache lists the /dev/block/ names, but removing it doesn't change the output.

The problem here is actually that lvm2 itself does a full scan of /dev, and has logic to decide which device names it prefers when they have the same major and minor numbers. This doesn't cause a problem for /dev/sda1 and the like because one of its rules is that it prefers device names containing fewer slashes; but /dev/cciss/c0d0p1 and /dev/block/104:1 are just as good in its book.

Ideally we'd be able to fix this in lvm.conf, but the only way to do that at the moment, devices/preferred_names, would involve trying to list all the possible names we might want to prefer to /dev/block/, which I don't think will fly. (devices/filter doesn't work because that would cause LVM to decide that /dev/block/ is the right name and then ignore such devices entirely.)

I'll just patch _compare_paths in lib/device/dev-cache.c directly.