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

Łukasz Stelmach stlman at poczta.fm
Sat Apr 9 12:12:40 UTC 2016


Michal Soltys <soltys at ziu.info> writes:

> On 2016-04-08 18:12, Andrei Borzenkov wrote:
>> 08.04.2016 18:20, Michael Biebl пишет:
>>> 2016-04-08 16:25 GMT+02:00 Michal Soltys <soltys at ziu.info>:
>>>> 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)
>>>
>>> That only work for late boot though. Consider the case where /var is a
>>> separate partition. The symlink will only be available once /var has
>>> been mounted, i.e. after local-fs.target.
>>
>> But the idea was to have link on *root* partition, i.e. before /var is
>> mounted.
>>
> Exactly that was my point.

It does not work like that. systemd mounts autofs, which covers any
contents of /var stored on the root partition, before udev starts. When
it starts it hits autofs which triggers systemd which is waiting for
udev to provide list of available devices. Bummer!

-- 
Miłego dnia,
Łukasz Stelmach


More information about the systemd-devel mailing list