On Tue, Jun 13, 2017 at 06:34:54AM +0100, James Hogarth wrote:> Depending on your setup, you many want to look at converting your > automatic mounts into systemd mounts, and depend on that directly, > rather than on the autofs service.[...]> Just one little thing to note here that many don't realise. All mounts in > the system (ie not manually via the mount command) are systemd mounts.This isn't true for autofs, is it?> Finally autofs is made even easier with systemd as all you need to do to > declare a mount autofs is x-systemd.automount in the options field and then > it'll only be mounted on demand rather than at boot.I mean, autofs using the traditional autofs.... -- Matthew Miller <mattdm at fedoraproject.org> Fedora Project Leader
On 13 June 2017 at 13:27, Matthew Miller <mattdm at mattdm.org> wrote:> On Tue, Jun 13, 2017 at 06:34:54AM +0100, James Hogarth wrote: >> Depending on your setup, you many want to look at converting your >> automatic mounts into systemd mounts, and depend on that directly, >> rather than on the autofs service. > [...] >> Just one little thing to note here that many don't realise. All mounts in >> the system (ie not manually via the mount command) are systemd mounts. > > This isn't true for autofs, is it? > >> Finally autofs is made even easier with systemd as all you need to do to >> declare a mount autofs is x-systemd.automount in the options field and then >> it'll only be mounted on demand rather than at boot. > > I mean, autofs using the traditional autofs.... >I've not actually tested that tbh Matt ... I expect that indeed that case it wouldn't work But unless you need a complicated map arrangement I'd argue on EL7 you'd be better off using the fstab option to make the mount automount
On Tue, Jun 13, 2017 at 01:33:33PM +0100, James Hogarth wrote:> >> Depending on your setup, you many want to look at converting your > >> automatic mounts into systemd mounts, and depend on that directly, > >> rather than on the autofs service.[...]> But unless you need a complicated map arrangement I'd argue on EL7 > you'd be better off using the fstab option to make the mount automountYeah, exactly what I meant with the first paragraph above. :) I've seen some prettttty complicated setups. And by seen, I mean "been responsible for". And by "responsible", I mean "to blame". :) -- Matthew Miller <mattdm at fedoraproject.org> Fedora Project Leader