Due to file system access permissions of a flatpak app being restricted to /home/user I moved my mount path from /mnt/MBO to /home/wurstsemmel/mnt/MBO.
According to man systemd.automount
, systemd.automount activates systemd.mount upon accessing the mount path. It works as described if I use /mnt/MBO as mount path.
When using /home/wurstsemmel/mnt/MBO as mount path, the remote file system is mounted immediately. Instead, it should be mounted upon (first) access.
Can anyone please help with an explanation and give a hint why? I would expect the same behaviour regardless of the mount path.
Thanks!
System: Fedora Linux 35 (Workstation Edition) on a Dell XPS 13 (9380)
Mount path /mnt/MBO: The WebDAV share is mounted upon first file system access, as described in the man page. Below, mount | grep MBO
returns two lines after issuing ls
.
[wurstsemmel@xps13 ~]$ sudo systemctl is-enabled mnt-MBO.mount
disabled
[wurstsemmel@xps13 ~]$ sudo systemctl is-enabled mnt-MBO.automount
disabled
[wurstsemmel@xps13 ~]$ mount | grep MBO
[wurstsemmel@xps13 ~]$ sudo systemctl start mnt-MBO.automount
[wurstsemmel@xps13 ~]$ mount | grep MBO
systemd-1 on /mnt/MBO type autofs (rw,relatime,fd=54,pgrp=1,timeout=300,minproto=5,maxproto=5,direct,pipe_ino=39346)
[wurstsemmel@xps13 ~]$ ls /mnt/MBO
[...]
[wurstsemmel@xps13 ~]$ mount | grep MBO
systemd-1 on /mnt/MBO type autofs (rw,relatime,fd=54,pgrp=1,timeout=300,minproto=5,maxproto=5,direct,pipe_ino=39346)
https://dav.mailbox.org/servlet/webdav.infostore/Userstore/xxx on /mnt/MBO type fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=0,allow_other,max_read=16384)
[wurstsemmel@xps13 ~]$
Mount path /home/wurstsemmel/mnt/MBO: The WebDAV Share is mounted immediately after starting systemd.automount. Below, mount | grep MBO
returns two lines immediately after starting the automount unit file.
[wurstsemmel@xps13 ~]$ sudo systemctl is-enabled home-wurstsemmel-mnt-MBO.automount
disabled
[wurstsemmel@xps13 ~]$ sudo systemctl is-enabled home-wurstsemmel-mnt-MBO.mount
disabled
[wurstsemmel@xps13 ~]$ mount | grep MBO
[wurstsemmel@xps13 ~]$ sudo systemctl start home-wurstsemmel-mnt-MBO.automount
[wurstsemmel@xps13 ~]$ mount | grep MBO
systemd-1 on /home/wurstsemmel/mnt/MBO type autofs (rw,relatime,fd=54,pgrp=1,timeout=300,minproto=5,maxproto=5,direct,pipe_ino=38229)
https://dav.mailbox.org/servlet/webdav.infostore/Userstore/xxx on /home/wurstsemmel/mnt/MBO type fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=0,allow_other,max_read=16384)
[wurstsemmel@xps13 ~]$