[systemd-devel] Hang when mounting NFS via systemd

Lennart Poettering lennart at poettering.net
Mon Oct 15 17:39:05 PDT 2012


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,
> >>
> [--snip--]
> > 
> > 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!
> > 
> > Lennart
> > 
> 
> 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.


Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list