]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Add --die-with-parent when invoking bubblewrap
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 11 Apr 2023 12:49:19 +0000 (14:49 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 11 Apr 2023 18:58:45 +0000 (20:58 +0200)
commitb0444dc01e01872cfaaba3291e74632c8a7bf792
tree5a57f24b7640220f8da1cb1aa7867e1eea7cb713
parent37f1ffb25a1d75718919755731d09b7269ba1e63
Add --die-with-parent when invoking bubblewrap

rpm blocks most signals when doing a transaction. dnf doesn't block
anything. The end result is that when we do ctrl+c when dnf is running
the rpm transaction, dnf gets interrupted and exits, which means mkosi
exits and tries to remove the workspace directory on which rpm is still
operating, causing all kinds of nastiness.

Because we don't care about transaction safety since we're operating on
a chroot, let's add --die-with-parent when running bubblewrap. This makes
bubblewrap ensure cleanup of all child processes underneath it, and
because rpm can't ignore SIGKILL, it also cleans up rpm properly, fixing
the issue.
mkosi/run.py