From: Daan De Meyer Date: Tue, 14 Feb 2023 18:14:36 +0000 (+0100) Subject: Skip selinux relabeling when building for cache or build script X-Git-Tag: v15~326 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75b170bccd6141377d7684babf33ea4dcd06363f;p=thirdparty%2Fmkosi.git Skip selinux relabeling when building for cache or build script --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 4174f32ba..59918e8c3 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -3092,6 +3092,9 @@ def run_preset_all(state: MkosiState) -> None: def run_selinux_relabel(state: MkosiState) -> None: + if state.for_cache or state.do_run_build_script: + return + selinux = state.root / "etc/selinux/config" if not selinux.exists(): return