This is a follow-up of How to set secondary volume mount options? - #11 by Lox with some variations.
On my host system, I have a drive mounted on /srv/ct/ct1data with noexec option since it’s ‘passive’ data which are better not to be executable. That folder is bind-mounted on my container, but for the container, it is supposed to be executable.
- Is that possible to tell LXD to mount with exec option that drive in the container?
- According to the mentioned post, it seems it must be done from within the container’s fstab, but I didn’t manage to get it to work ; notably, if I put it in the CT’s fstab, should I remove the bind mount from the configuration of the CT in LXD?)
Thank you very much for the help and tips!
PS: The server is running Debian 10, kernel 5.10, LXD 4.18 with btrfs storage (btrfs 5.4.1).