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. 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 ```bash
$ sudo nano /etc/systemd/system/mnt-smb-sambashare.automount $ sudo nano /etc/systemd/system/mnt-smb-sambashare.automount
``` ```
@@ -100,7 +102,6 @@ $ sudo nano /etc/systemd/system/mnt-smb-sambashare.automount
``` ```
[Unit] [Unit]
Description=samba automount for yourfiles Description=samba automount for yourfiles
Requires=network-online.target
[Automount] [Automount]
Where=/mnt/smb/sambashare Where=/mnt/smb/sambashare
@@ -145,7 +146,6 @@ $ sudo nano /etc/systemd/system/mnt-nfs-nfsshare.automount
``` ```
[Unit] [Unit]
Description=nfs automount for nfsfiles Description=nfs automount for nfsfiles
Requires=network-online.target
[Automount] [Automount]
Where=/mnt/nfs/nfsshare Where=/mnt/nfs/nfsshare