Téléverser les fichiers vers "/"
This commit is contained in:
parent
e4b6d17f1c
commit
0f3d857e17
22
cifs.mount
Normal file
22
cifs.mount
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# 2024-03-10
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=Docker Mount: Samba
|
||||||
|
DefaultDependencies=yes
|
||||||
|
Conflicts=umount.target
|
||||||
|
Before=docker.service
|
||||||
|
Wants=network-online.target
|
||||||
|
Requires=network-online.target
|
||||||
|
After=network-online.target
|
||||||
|
After=systemd-networkd-wait-online.service
|
||||||
|
|
||||||
|
[Mount]
|
||||||
|
What=//amaterasu.home/samba
|
||||||
|
Where=/opt/samba
|
||||||
|
Type=cifs
|
||||||
|
Options=defaults,_netdev,guest,exec,dir_mode=0775,file_mode=0664,uid=1000,gid=1000,vers=3.1.1
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=systemd-networkd-wait-online.service
|
||||||
|
WantedBy=network-online.target
|
||||||
|
WantedBy=multi-user.target
|
20
nfs.mount
Normal file
20
nfs.mount
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# 2024-03-10
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=Docker Mount: NFS
|
||||||
|
DefaultDependencies=yes
|
||||||
|
Conflicts=umount.target
|
||||||
|
Before=docker.service
|
||||||
|
After=network-online.target
|
||||||
|
After=systemd-networkd-wait-online.service
|
||||||
|
|
||||||
|
[Mount]
|
||||||
|
Where=/opt/nfs
|
||||||
|
What=192.168.1.2:/mnt/hdd/nfs
|
||||||
|
Type=nfs4
|
||||||
|
Options=_netdev,noauto,soft,intr,nfsvers=4.2,rsize=131072,wsize=131072,noatime,nodiratime
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=systemd-networkd-wait-online.service
|
||||||
|
WantedBy=network-online.target
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user