<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Michael Tautschnig a &eacute;crit&nbsp;:
<blockquote cite="mid:20100727085016.GH47906@l04.local" type="cite">
  <pre wrap="">Hi Nicolas,

  </pre>
  <blockquote type="cite">
    <pre wrap="">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/&lt;LVM volume&gt; during installation to
build /etc/fstab:

(CMD) readlink -f /dev/vg0/var 1&gt; /tmp/mPvYMCBCMk 2&gt; /tmp/TcD7OA66rq
Executing: readlink -f /dev/vg0/var
(STDOUT) /dev/dm-0
[...]
(CMD) readlink -f /dev/vg0/swap 1&gt; /tmp/ls625DMAbK 2&gt; /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/&lt;volume&gt; or /dev/mapper,
or even UUIDs, rather than /dev/dm-* , for /etc/fstab?

    </pre>
  </blockquote>
  <pre wrap=""><!---->
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

  </pre>
</blockquote>
I didn't know this option, it works much better this way <span
 class="moz-smiley-s1"><span> :-) </span></span>.<br>
<br>
Thanks for the quick reply,<br>
<br>
-- <br>
Nicolas<br>
</body>
</html>