osbuild: run stages as PID2 instead of PID1

nspawn can provide a minimal PID1 implementation, avoiding stages to
themselves do things like reap zobies etc. Use that.
This commit is contained in:
Tom Gundersen 2019-06-07 17:00:24 +02:00
parent 7999ef9f9d
commit 61f83b3f46

View file

@ -73,6 +73,7 @@ def main(pipeline_path, from_archive, save):
try:
subprocess.run(["systemd-nspawn",
"--as-pid2",
"--link-journal=no",
"--volatile=yes",
f"--directory={root}",