Skip to content

Commit

Permalink
add media mount
Browse files Browse the repository at this point in the history
  • Loading branch information
10leej committed Dec 9, 2023
1 parent 5e38a6d commit b845fa3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

11 changes: 11 additions & 0 deletions mnt-media.mount
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b845fa3

Please sign in to comment.