Per Jessen wrote:
Roger Oberholtzer wrote:
I want it to re-read this file after I have edited it. As Per said, I will know it worked when I access the file system and trigger the automount.
FWIW, this worked for me in my test setup. Ignore my report about having to reboot.
amend fstab
My test case is just auto mounting an ISO image: /tmp/openSUSE-13.2-NET-i586.iso /tmp/anton iso9660 loop,noauto,x-systemd.automount,x-systemd.idle-timeout=60,nofail 0 0
systemctl daemon-reload systemctl --all | grep anton
tmp-anton.automount tmp-anton.mount
ls -l /tmp/anton
office36:~ # l /tmp/anton/ total 752 dr-xr-xr-x 5 root root 2048 Nov 10 2011 ./ drwxrwxrwt 13 root root 745472 Aug 17 08:08 ../ -r--r--r-- 1 root root 133 Nov 10 2011 ARCHIVES.gz dr-xr-xr-x 3 root root 2048 Nov 10 2011 boot/ -r--r--r-- 1 root root 200 Nov 10 2011 ChangeLog -r--r--r-- 1 root root 3470 Nov 10 2011 content -r--r--r-- 1 root root 481 Nov 10 2011 content.asc -r--r--r-- 1 root root 81 Nov 10 2011 directory.yast -r--r--r-- 1 root root 683 Nov 10 2011 INDEX.gz -r--r--r-- 1 root root 1514 Nov 10 2011 ls-lR.gz dr-xr-xr-x 2 root root 2048 Nov 10 2011 media.1/ dr-xr-xr-x 3 root root 2048 Nov 10 2011 suse/ Here is what systemd did, including the unmount after the idle timeout: Aug 17 08:08:21 office36 systemd[1]: tmp-anton.automount: Got automount request for /tmp/anton, triggered by 14925 (ls) Aug 17 08:08:21 office36 systemd[1]: Mounting /tmp/anton... Aug 17 08:08:21 office36 mount[14926]: mount: /dev/loop0 is write-protected, mounting read-only Aug 17 08:08:21 office36 kernel: ISO 9660 Extensions: Microsoft Joliet Level 3 Dec 31 23:59:58 office36 kernel[885]: Last message 'ISO 9660 Extensions:' repeated 1 times, suppressed by syslog-ng on office36.local.net Aug 17 08:08:21 office36 kernel: ISO 9660 Extensions: RRIP_1991A Aug 17 08:08:21 office36 systemd[1]: Mounted /tmp/anton. Aug 17 08:09:21 office36 systemd[1]: Unmounting /tmp/anton... Aug 17 08:09:21 office36 systemd[1]: Unmounted /tmp/anton. -- Per Jessen, Zürich (19.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