setup-storage sets wrong data in /etc/fstab

Nicolas Courtel courtel at cena.fr
Tue Jul 27 10:42:21 CEST 2010


Hello,

Using FAI 3.4~beta6+experimental2 (also checked with experimental4 this 
morning) for squeeze and LVM, I have a funny fstab problem.

setup-storage looks in /dev/<LVM volume> during installation to build 
/etc/fstab:

(CMD) readlink -f /dev/vg0/var 1> /tmp/mPvYMCBCMk 2> /tmp/TcD7OA66rq
Executing: readlink -f /dev/vg0/var
(STDOUT) /dev/dm-0
[...]
(CMD) readlink -f /dev/vg0/swap 1> /tmp/ls625DMAbK 2> /tmp/cAQYclvajY
Executing: readlink -f /dev/vg0/swap
(STDOUT) /dev/dm-1
[...]

But when the host boots, the links are all mixed up, so it doesn't work 
so well:

# readlink /dev/vg0/var
../dm-1
# readlink /dev/vg0/swap
../dm-2
...

Shouldn't setup-storage use links in /dev/<volume> or /dev/mapper, or 
even UUIDs, rather than /dev/dm-* , for /etc/fstab?

-- 
Nicolas



More information about the linux-fai mailing list