Anton Aylward wrote:
On 16/08/17 12:36 PM, Per Jessen wrote:
Per Jessen wrote:
Right. daemon-reload should be sufficient I believe.
https://www.freedesktop.org/software/systemd/man/systemd-fstab-generator.htm...
"systemd-fstab-generator is a generator that translates /etc/fstab (see fstab(5) for details) into native systemd units early at boot and when configuration of the system manager is reloaded."
I tried this on leap42.3 - added the following to fstab:
/tmp/anton.iso /tmp/anton iso9660 loop,noauto,x-systemd.automount,x-systemd.idle-timeout=60,nofail 0 0
Then I ran 'systemctl daemon-reload'
At that point there should have been a new dot-mount file come into existence under /run/systemd/generator
I agree and it should have been listed by systemctl.
You could run a before and after find listing to see if that happened. To my mind that is the most meaningful test to see if the generator ran.
Running 'systemctl' should suffice to list known items.
Secondly, there is a much more basic test you could have run as a precursor. Create new STATIC mount.
Adding one line to fstab was pretty basic I thought. :-)
# systemctl | grep automount proc-sys-fs-binfmt_misc.automount
Unfortunately that is not meaningful information.
It seems pretty meaningful that 'tmp-anton.automount' isn't listed, contrary to expectations.
It was running before, it was running afterwards. You do not know if it is the same instance or a newly exec'd instance. You weren't running it with extra debugging or logging to see what it actually did. You don't know that it read the new config files.
Main thing - I know that what I intended was not achieved.
Then I ran 'systemctl daemon-reexec'
# systemctl | grep automount proc-sys-fs-binfmt_misc.automount
Remarkably, it took a reboot:
# systemctl | grep automou proc-sys-fs-binfmt_misc.automount tmp-anton.automount
The best I can figure is that neither reload no reexec actually ends up restarting the automounter.
Perhaps, but why wasn't systemd-fstab-generator rerun with the 'daemon-reload'? -- Per Jessen, Zürich (24.2°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org