[systemd-devel] Hang when mounting NFS via systemd
spam at scientician.net
Tue Oct 16 09:33:57 PDT 2012
On 10/16/2012 02:39 AM, Lennart Poettering wrote:
> On Mon, 08.10.12 19:57, Bardur Arantsson (spam at scientician.net) wrote:
>> On 09/24/2012 12:56 PM, Lennart Poettering wrote:
>>> On Sun, 23.09.12 17:21, Bardur Arantsson (spam at scientician.net) wrote:
>>>> Hi all,
>>> This indicates a bug i systemd actually. For some reason systemd appears
>>> to believe that your NFS share is a device to wait for.
>>> I tried to fix this in git with two commits. Please test!
>> It seems to work perfectly now (v194) when I do the mounting post-boot
>> in a shell, using
>> # systemctl start data.mount
>> However, it still hangs during boot, waits for the defined timeout
>> period and then... proceeds to work perfectly.
>> I'm not sure, but could it have something to do with my use of two
>> automounts where one is nested inside the other? I have
> It might be sufficient to do "systemctl enable
> NetworkManager-wait-online.service". Only then the NFS mounts will be
> delayed until NM considers the system to be online.
That worked great, thanks!
(There's still a slightly delay, but that seems to be my DHCP server
being slow to respond.)
More information about the systemd-devel