From 39b379f7d9922bf067f267f430ca1092f8cd1a08 Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Thu, 28 Aug 2025 13:28:25 -0400 Subject: 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 --- config.sh | 2 +- teams/cloud/wsl.xml | 2 -- 2 files changed, 1 insertion(+), 3 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 diff --git a/teams/cloud/wsl.xml b/teams/cloud/wsl.xml index 750de2d..ffafb79 100644 --- a/teams/cloud/wsl.xml +++ b/teams/cloud/wsl.xml @@ -15,9 +15,7 @@ - - -- cgit v1.3.1+13