I’d like to share a common “distfile” directory to a container. The particular folder is owned by my user, and has 0777 permissions to test, but still incus can’t add it with:
devices:
distfiles:
path: /var/cache/distfiles/
source: /var/cache/distfiles/
type: disk
I get:
Config parsing error: Failed checking if instance update allowed: Invalid device “distfiles” on container “my-gentoo-gh-test-container” of project “user-1000”: Disk source path “/var/cache/distfiles/” not allowed
I’m pretty sure this is somehow an incus-user issue. As the user I can write to /var/cache/distfiles/ on host just fine. Could Incus need more permission folders from parent directories?
Niice find, indeed I had only my home directory in that restricted.devices.disk.paths listing. It’s a comma-separated list, so now with /home/me,/var/cache/distfiles,more,andmore I get access elsewhere