From 0f3d857e1775f614786842bf4c0f8fe5b160e744 Mon Sep 17 00:00:00 2001 From: Olivier Date: Sun, 10 Mar 2024 15:41:46 +0100 Subject: [PATCH] =?UTF-8?q?T=C3=A9l=C3=A9verser=20les=20fichiers=20vers=20?= =?UTF-8?q?"/"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cifs.mount | 22 ++++++++++++++++++++++ nfs.mount | 20 ++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 cifs.mount create mode 100644 nfs.mount diff --git a/cifs.mount b/cifs.mount new file mode 100644 index 0000000..b2a147b --- /dev/null +++ b/cifs.mount @@ -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 diff --git a/nfs.mount b/nfs.mount new file mode 100644 index 0000000..6ecaf4e --- /dev/null +++ b/nfs.mount @@ -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