From b845fa3199825105d5f3a2ddf0b4eecdf5d79270 Mon Sep 17 00:00:00 2001 From: Joshua AE Lee Date: Fri, 8 Dec 2023 20:56:03 -0500 Subject: [PATCH] add media mount --- Containerfile | 4 ++-- mnt-media.mount | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 mnt-media.mount diff --git a/Containerfile b/Containerfile index be4588c..09b4eef 100644 --- a/Containerfile +++ b/Containerfile @@ -29,8 +29,8 @@ RUN systemctl enable sshd.service #RUN echo "media -fstpe=nfs4,rw 192.168.0.2:/mnt/media/" >> /etc/auto.nfs #RUN echo "/mnt/nfs /etc/auto.nfs --ghost --timeout=60" >> /etc/auto.master #RUN systemctl enable autofs.service -RUN mkdir -p /fancy/media -RUN echo "192.168.0.10:/srv/media /fancy/media nfs _netdev,defaults,x-systemd.automount,x-systemd.idle-timeout=600 0 0" >> /etc/fstab +# RUN mkdir -p /fancy/media +RUN cp mnt-media.mount >> /etc/systemd/system/mnt-media.mount RUN rm -rf /tmp /var diff --git a/mnt-media.mount b/mnt-media.mount new file mode 100644 index 0000000..8278419 --- /dev/null +++ b/mnt-media.mount @@ -0,0 +1,11 @@ +[Unit] +Description=media share + +[Mount] +What=192.168.0.10:/srv/media +Where=/mnt/media +Type=nfs +Options=_netdev,defaults + +[Install] +WantedBy=multi-user.target \ No newline at end of file