aboutsummaryrefslogtreecommitdiff
path: root/config.sh
diff options
from:
to:
context:
space:
mode:
authorGravatar Jeremy Cline <jeremycline@linux.microsoft.com> 2025-08-28 13:28:25 -0400
committerGravatar Jeremy Cline <jeremycline@linux.microsoft.com> 2025-08-28 13:33:42 -0400
commit39b379f7d9922bf067f267f430ca1092f8cd1a08 (patch)
treedf0fd70e0c648b648e28e814bba90b113f856ede /config.sh
parent01d839d633816b2f9804c64331379d4051a15805 (diff)
downloadkiwi-descriptions-39b379f7d9922bf067f267f430ca1092f8cd1a08.tar.gz
kiwi-descriptions-39b379f7d9922bf067f267f430ca1092f8cd1a08.zip
wsl: drop the SELinux packages from the WSL base image
WSL does not support SELinux, so at best it's pointless to install. This also actively breaks WSL 1 users, although I don't think we should suggest that we support that, and if the policy on the builder doesn't match the target things break during the build. It also reduced the build time from ~80 seconds to ~70 seconds for me, so that's nice. Signed-off-by: Jeremy Cline <jeremycline@linux.microsoft.com>
Diffstat (limited to 'config.sh')
-rwxr-xr-xconfig.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.sh b/config.sh
index a81dc31..94b51e5 100755
--- a/config.sh
+++ b/config.sh
@@ -16,7 +16,7 @@ echo "Configure image: [$kiwi_iname]-[$kiwi_profiles]..."
#======================================
# Set SELinux booleans
#--------------------------------------
-if [[ "$kiwi_profiles" != *"Container"* ]] && [[ "$kiwi_profiles" != *"FEX"* ]]; then
+if [[ "$kiwi_profiles" != *"Container"* ]] && [[ "$kiwi_profiles" != *"FEX"* ]] && [[ "$kiwi_profiles" != *"WSL"* ]]; then
## Fixes KDE Plasma, see rhbz#2058657
setsebool -P selinuxuser_execmod 1
fi