abuild: kill all childs when bwrap exits
--unshare-pid is needed for --die-with-parent to work correctly. Ref https://github.com/containers/bubblewrap/issues/529
This commit is contained in:
parent
8eaa065f3a
commit
0a91a31e47
|
@ -2567,6 +2567,7 @@ rootbld() {
|
||||||
local bwrap_opts=""
|
local bwrap_opts=""
|
||||||
options_has "net" || bwrap_opts="$bwrap_opts --unshare-net"
|
options_has "net" || bwrap_opts="$bwrap_opts --unshare-net"
|
||||||
bwrap --new-session --unshare-ipc --unshare-uts $bwrap_opts \
|
bwrap --new-session --unshare-ipc --unshare-uts $bwrap_opts \
|
||||||
|
--unshare-pid --die-with-parent \
|
||||||
--ro-bind "$BUILD_ROOT" / \
|
--ro-bind "$BUILD_ROOT" / \
|
||||||
--proc /proc \
|
--proc /proc \
|
||||||
--dev-bind /dev /dev \
|
--dev-bind /dev /dev \
|
||||||
|
|
Loading…
Reference in New Issue