On 01/03/18 03:01 AM, Roger Oberholtzer wrote:
On Thu, Mar 1, 2018 at 8:34 AM, Per Jessen <per@computer.org> wrote:
The mount unit is auto-generated, but you can (presumably) still override it with a drop-in config.
If you have a mount unit called "ober-holtzer.mount" for mounting something on "/ober/holtzer", you create ober-holtzer.mount.d/override.conf :
[automount] directorymode=1234
(loosely from memory, I might have missed something)
Where are these files stored? I have some autofs network drives mounted via this mechanism and I don't seem to find the directory. I don't see anything in /usr/lib/systemd.
He said that the mount init - well units actually - are autogenerated. They are autogenerated by /usr/lib/systemd/system-generators/systemd-fstab-generator and can be found in /run/systemd/generator/ Well actually the local-fs.target has a long list of requires from that generator, but the *.mount files are at the bottom of it. So you get, for example, from the entry in /etc/fstab for mounting a separate /tmp: # more /run/systemd/generator/local-fs.target.requires/tmp.mount # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=local-fs.target Requires=systemd-fsck@dev-disk-by\x2dlabel-TMP.service After=systemd-fsck@dev-disk-by\x2dlabel-TMP.service [Mount] What=/dev/disk/by-label/TMP Where=/tmp Type=ext4 Options=noexec,nosuid,nodev and # more /run/systemd/generator/tmp.mount # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=local-fs.target Requires=systemd-fsck@dev-disk-by\x2dlabel-TMP.service After=systemd-fsck@dev-disk-by\x2dlabel-TMP.service [Mount] What=/dev/disk/by-label/TMP Where=/tmp Type=ext4 Options=noexec,nosuid,nodev -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org