jhnc-oss / yocto-build

Yocto Build Container Environment using podman(1)
MIT License
1 stars 1 forks source link

Mount volumes with ':Z' #47

Closed offa closed 1 year ago

offa commented 1 year ago

Mounting volumes with :Z fixes a dev/init_env.sh: Permission denied error on bootstrap.

Iniesta8 commented 1 year ago

By adding :Z, only the last container the volume is attached to is able to access it. Typically we only use one build container at a time, so this should not be a problem.

offa commented 1 year ago

Indeed, multiple containers working on the same volumes could be problematic anyway.