<p>Sorry for dropping the list...</p>
<p>On Apr 2, 2012 4:04 PM, "Colin Guthrie" <<a href="mailto:colin@guthr.ie">colin@guthr.ie</a>> wrote:<br>
><br>
> 'Twas brillig, and Tom Gundersen at 02/04/12 14:51 did gyre and gimble:<br>
> >> > In our discussions, I was concerned that remote-fs.target was a<br>
> >> > pre-requisite of systemd-user-sessions.service as on my machine, my<br>
> >> > /mnt/scratch NFS mount delayed the display manager startup when it has<br>
> >> > absolutely nothing to do with logins.<br>
> >><br>
> >> Why should remote fs be ordered before user login at all?<br>
> ><br>
> > Never mind this comment, I was being daft. The other question still holds.<br>
><br>
> :) Yeah for /home on NFS is the reason which I presume you realised :D</p>
<p>Indeed, and this is what I<br>
am using...</p>
<p>> >> I have been using automount to achieve similar behaviour to what you<br>
> > want. Might that be an option?<br>
><br>
> Well it's an option, but still not one that is currently handled gracefully.</p>
<p>I agree, it can and should be improved, though the user experience is not too bad at the moment.</p>
<p>> If the /home is now an NFS automount (or /home/$USER itself), then the<br>
> network still needs to be available for the automount to work.</p>
<p>Currently, it is up to the admin to select which mounts should block boot. In other words, to get the feature you describe I would mark the partitions that are needed for login as regular mounts and the ones that are not needed as automounts.</p>
<p>However, we can do better, and this is what I do: mark all partitions as automount and let kdm start while /home is being fscked or mounted over nfs.</p>
<p>> If prefdm starts and lets users login before the network is ready, will<br>
> the automount simply block until the network is available?</p>
<p>Correct, this would have to be improved before the general user would be happy with home on automount. Currently kdm blocks with a black screen until home is mounted. In an ideal world, kdm would first of all show fsck progress from systemd, and second of all make reads from /home asynchronous (so pictures would appear once home is mounted). Maybe it would also make sense for kdm to not allow the user to log in until some info (such as previous session) is available, in which case kdm should block with a "please wait" message. At any rate, imho gdm/kdm should decide how to act without systemd having to be involved.</p>
<p>> If so then it's a reasonable workaround IMO, but it may still be<br>
> desirable to get the mounts available first (e.g. to look up faces or<br>
> find users' last login session type in the DM itself etc.)<br>
><br>
> Otherwise the DM may only be half ready - e.g. hang while reading the<br>
> users' homedir (and waiting for the mount).</p>
<p>See above.</p>
<p>> So maybe the fixed mounts are still desirable.</p>
<p>I agree, at least in the short/medium term. Though I am not sure if we need an extra target for this, the admin could simply leave the /home partition as not automounted.</p>
<p>Just my two cents :-) </p>
<p>Cheers,</p>
<p>Tom</p>