Ian Stakenvicius wrote:
> > WilliamH wants everyone using /dev/disk/by-label/<name>
> > paths in fstab to instead use LABEL=<name> , to avoid issues if udev
> > doesn't create the symlinks before localmount tries to use them.
..
> UUID is the same situation in this case -- in fstab you can do it by
> UUID=<uuid> or you can do it by /dev/disk/by-uuid/<uuid>.  The latter
> form depends on udev finishing up and would have the same issue.

It seems that the former form may also depend on udev having settled.

--8<-- mount(8)
       The device indication.
..
              The recommended setup is to use tags (e.g. LABEL=<label>) rather
              than  /dev/disk/by-{label,uuid,partuuid,partlabel} udev symlinks
              in the /etc/fstab file. The tags are more readable,  robust  and
              portable. The mount(8) command internally uses udev symlinks, so
              use the symlinks in /etc/fstab has no advantage over  the  tags.
              For more details see libblkid(3).
-->8--

Oops. Let's look further:

--8<-- libblkid(3)
       The  high-level  part  of  the library supports two methods to evaluate
       LABEL/UUID.  It reads information directly from a block device or  read
       information  from  /dev/disk/by-*  udev symlinks. The udev is preferred
       method by default.
-->8--

..so when is the non-default method (querying devices) used?


//Peter

Reply via email to