Here's a revised possibility -- it diverges a little from the original
message but I think its more inclusive as to the issue.

Thoughts?

-----

Title: Important fstab and localmount update
Author: William Hubbs <willi...@gentoo.org>
Content-Type: text/plain
Posted: 2016-10-28
Revision: 1
News-Item-Format: 1.0
[rules-that-limits-this-to-openrc-and-udev??]

Recent updates to init scripts in OpenRC and (e)udev have removed the
requirement for udev to "settle" before it's startup completes.  The
result of this is that services which used to wait for udev to finish
processing all kernel events will now start earlier.  One such service
is localmount.

If "/dev/disk/by-*" source paths for are used for mount points in
fstab, then it is possible that udev may not have created those
symlinks before localmount starts and tries to mount them.

One possible way to address this is to ensure that udev-settle is
started before localmount starts, to enforce the old behaviour.  This
can be done simply by adding it to sysinit the runlevel, or adding an
'rc_want=udev-settle' in /etc/conf.d/localmount.

The more generic solution is to move away from using "/dev/disk/by-*"
source paths and instead convert to using the LABEL= , UUID= , or
PARTUUID= syntax in fstab instead.  This syntax is supported directly
by mount and works regardless of device manager, therefore removing
the the dependency of having udev-settle before mounting these paths.
More information can be found in the fstab manpage.



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to