pipeline: don't create "/run/osbuild" eagerly

The "/run/osbuild" path is used as the default runpath by the
BuildRoot, which creates it on demand. The only other place
is the API (`BaseAPI`) to create the socket directories in,
but that is now also created on-demand. Additionally, the
API are only run after the build root has been set up so that
directory would already exist.
This commit is contained in:
Christian Kellner 2020-12-04 10:52:22 +01:00
parent 35149c6aec
commit 27d4450352

View file

@ -321,7 +321,6 @@ class Pipeline:
return results, output
def run(self, store, monitor, libdir, output_directory):
os.makedirs("/run/osbuild", exist_ok=True)
results = {"success": True}
monitor.begin(self)