removed "Requires=network-online.target" from automount files

This commit is contained in:
Ray Lyon
2021-09-19 17:07:20 -04:00
committed by GitHub
parent e1220573a3
commit 82f2e1c604

View File

@@ -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!
Thanks for reading and happy hacking!