setup-storage sets wrong data in /etc/fstab
Michael Tautschnig
mt at debian.org
Tue Jul 27 10:50:16 CEST 2010
Hi Nicolas,
> 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?
>
Thanks for the report and debugging effort. Hmm, so doing the readlink thing is
not a good idea it seems, maybe we should change this, yes. But for the moment
I'd suggest you just go for UUIDs, which we might want to make the default. You
can achieve this by adding
fstabkey:uuid
to your disk/LVM config line, like
disk_config lvm fstabkey:uuid
Hope this helps,
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20100727/7025c7dd/attachment.bin
More information about the linux-fai
mailing list