]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Do not pass environment when doing selinux relabel
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 6 Aug 2023 10:07:50 +0000 (12:07 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 6 Aug 2023 10:45:13 +0000 (12:45 +0200)
We don't do this for any of the other commands we run, let's not do
it for selinux either.

mkosi/__init__.py

index 5eaadf71d4e0efdc3ed3c3915da1330ba944b3f7..39f51ee2f5cf507840e715406961f4456d3974d5 100644 (file)
@@ -1188,7 +1188,7 @@ def run_selinux_relabel(state: MkosiState) -> None:
         die(f"SELinux binary policy not found in {binpolicydir}")
 
     with complete_step(f"Relabeling files using {policy} policy"):
-        run(["setfiles", "-mFr", state.root, "-c", binpolicy, fc, state.root], env=state.config.environment)
+        run(["setfiles", "-mFr", state.root, "-c", binpolicy, fc, state.root])
 
 
 def need_build_packages(config: MkosiConfig) -> bool: