mirror of
https://github.com/skoobasteeve/skoobasteeve.github.io.2.git
synced 2026-03-20 07:58:57 +00:00
removed "Requires=network-online.target" from automount files
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user