Hi,
I have some SMB shares mounted on my Proxmox host that are propagated to unprivileged LXC containers.
The entry in my
Is there a more efficient way to handle this? Ideally, I’d like the LXC container to always start, and then automatically have the server data available as soon as the mount is ready.
I have some SMB shares mounted on my Proxmox host that are propagated to unprivileged LXC containers.
The entry in my
/etc/fstab is as follows:In my LXC container config, I've added the following line://Server/Paperless /mnt/paperless/ cifs credentials=/root/.truenas-smb-paperless.conf,file_mode=0770,dir_mode=0770,gid=100113,_netdev,soft,x-systemd.automount 0 0
This setup works as expected, but if the SMB mount fails for any reason (e.g., if Proxmox boots faster than the NAS), the container startup fails because the mount point folder on the host doesn’t exist. If I manually create the folder on the host, the container starts without issue, even if the mount has failed. However, once the mount succeeds, the data isn't propagated to the container, so the folder inside the LXC remains empty.mp1: /mnt/paperless/media,mp=/opt/paperless/media
Is there a more efficient way to handle this? Ideally, I’d like the LXC container to always start, and then automatically have the server data available as soon as the mount is ready.