1 - At boot time, fsck chokes on LVs listed by label in fstab
3 --- util-linux-2.12p/mount/mount_by_label.c.lvm2dupes 2005-04-25 11:33:53.657880224 +0200
4 +++ util-linux-2.12p/mount/mount_by_label.c 2005-04-25 11:36:32.075797040 +0200
9 +/* We need to avoid listing /dev/dm-X devices, because they are added to the uuidcache separately by the
10 + uuidcache_init_dm routine. Duplicate entries cause mount-by-label to fail.
13 +is_lvm2(char *ptname)
15 + return !strncmp(ptname, "dm-", 3);
19 uuidcache_init(void) {
22 /* devfs has .../disc and .../part1 etc. */
24 for (s = ptname; *s; s++);
25 - if (isdigit(s[-1]) || is_xvm(ptname)) {
26 + if ((isdigit(s[-1]) || is_xvm(ptname)) && !is_lvm2(ptname)) {
29 * Note: this is a heuristic only - there is no reason