Only disable sandbox while builing the builder, keep it enabled for actual builds - #338
Only disable sandbox while builing the builder, keep it enabled for actual builds#338gyscos wants to merge 1 commit into
Conversation
|
Thanks! Are you sure this sandbox feature can work properly in a docker container (and maybe also second level inside an lxc/incus container)? |
|
I tested it on my machine so far. I believe truenas supports landlock by default, which is why pacman has been able to run fine in docker or lxc without disabling the sandbox. On github CI, I think it uses native workers to build the image, so no buildkit problem. Still, I'll try to get a full arm64 build test on amd64 truenas to confirm that it works. (This is overall a very low-priority PR, just an alternative solution to the landlock issue I had before you fixed in it #205) I also wonder if cross-compilation using native compilers might be more performant than using qemu, but I guess not every package might work that way. |
|
I have to test this further when i have time. |
This adds the --disable-sandbox flag to pacman commands, rather than disabling sandbox entirely.
The difference is that:
It's not a very critical thing - we already sandbox the builder in its own image so pacman's sandbox is of little benefits, but it's slightly cleaner not having to patch the pacman config.