[systemd-devel] udev vs. nscd vs. /var automount

Michal Soltys soltys at ziu.info
Fri Apr 8 14:25:37 UTC 2016


On 2016-04-06 11:15, Ɓukasz Stelmach wrote:
> Hi,
>
> I've hit a problem caused by a mix of: automounting + glibc + udev + my
> partition layout. Apparently it is impossible to make /var automountable
> because udev (which needs to enumerate devices befor mounting them) is
> trying to connect to /var/run/nscd/socket (that's actually glibc
> code). This attempt does not fail because autofs tells there still is
> hope that the path will appear soon but it won't because udev can't tell
> the device to mount exists.
>
> I've checked glibc source and it still refers to /var/run/nscd/socket
> rather than /run/nscd/socket. As far as I know there is no way to
> disable nscd lookups.
>
> Any idead how to cope with it?
>
> Kind regards,
>

On your root partition keep /var/run symlink to /run - so regardless if 
/var is or isn't mounted, the path will be correct. Wouldn't that help ? 
(unless I missed something)



More information about the systemd-devel mailing list