diff --git a/_posts/2020-10-07-systemd-automount.md b/_posts/2020-10-07-systemd-automount.md index 0d8ec24..c0c3e4f 100644 --- a/_posts/2020-10-07-systemd-automount.md +++ b/_posts/2020-10-07-systemd-automount.md @@ -93,6 +93,8 @@ A few notes on the above file: \ Next we need to create the automount file in the same location. +***EDIT 2021-08-26*** Reader flansuse pointed out that including `Requires=network-online.target` in the automount file did not conform with systemd guidelines. I confirmed that the mounts work perfectly well without that line, so it's been removed. + ```bash $ sudo nano /etc/systemd/system/mnt-smb-sambashare.automount ``` @@ -100,7 +102,6 @@ $ sudo nano /etc/systemd/system/mnt-smb-sambashare.automount ``` [Unit] Description=samba automount for yourfiles -Requires=network-online.target [Automount] Where=/mnt/smb/sambashare @@ -145,7 +146,6 @@ $ sudo nano /etc/systemd/system/mnt-nfs-nfsshare.automount ``` [Unit] Description=nfs automount for nfsfiles -Requires=network-online.target [Automount] Where=/mnt/nfs/nfsshare @@ -197,4 +197,4 @@ $ sudo systemctl enable mnt-smb-smbshare.automount \ That's it! To test, reboot your system, open the mountpoint in terminal or the file manager, and your share will mount before your eyes. If you have any questions or critiques on the above instructions, please shoot me an [email](mailto:ray@raylyon.net) or open a [Github issue](https://github.com/skoobasteeve/skoobasteeve.github.io.2/issues). -Thanks for reading and happy hacking! \ No newline at end of file +Thanks for reading and happy hacking!