diff options
| author | 2025-08-28 13:28:25 -0400 | |
|---|---|---|
| committer | 2025-08-28 13:33:42 -0400 | |
| commit | 39b379f7d9922bf067f267f430ca1092f8cd1a08 (patch) | |
| tree | df0fd70e0c648b648e28e814bba90b113f856ede | |
| parent | 01d839d633816b2f9804c64331379d4051a15805 (diff) | |
| download | kiwi-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>
| -rwxr-xr-x | config.sh | 2 | ||||
| -rw-r--r-- | teams/cloud/wsl.xml | 2 |
2 files changed, 1 insertions, 3 deletions
@@ -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 @@ <package name="dnf5"/> <package name="dnf5-plugins"/> <package name="fedora-release-wsl"/> - <package name="policycoreutils"/> <package name="rpm"/> - <package name="selinux-policy-targeted"/> </packages> <packages type="image" patternType="plusRecommended" profiles="WSL-Base"> <package name="attr"/> |