stage: provide loop-server to stages

This makes it possible for stages to create loop devices and further
aligns Stages and Assemblers.
This commit is contained in:
Christian Kellner 2021-01-15 18:29:03 +01:00 committed by Tom Gundersen
parent 1297922a57
commit 0bb3121273

View file

@ -101,6 +101,9 @@ class Stage:
sources_output)
build_root.register_api(src)
rls = remoteloop.LoopServer()
build_root.register_api(rls)
r = build_root.run([f"/run/osbuild/bin/{self.name}"],
monitor,
binds=[os.fspath(tree) + ":/run/osbuild/tree"],