diff --git a/Fedora.kiwi b/Fedora.kiwi index 6eeb9c9..5f3a795 100644 --- a/Fedora.kiwi +++ b/Fedora.kiwi @@ -38,6 +38,7 @@ + diff --git a/config.sh b/config.sh index fb10431..5034b83 100755 --- a/config.sh +++ b/config.sh @@ -33,7 +33,7 @@ rm -f /var/lib/systemd/random-seed #====================================== # Configure grub correctly #-------------------------------------- -if [[ "$kiwi_profiles" != *"Container"* ]] && [[ "$kiwi_profiles" != *"FEX"* ]]; then +if [[ "$kiwi_profiles" != *"Container"* ]] && [[ "$kiwi_profiles" != *"FEX"* ]] && [[ "$kiwi_profiles" != *"WSL"* ]]; then ## Works around issues with grub-bls ## See: https://github.com/OSInside/kiwi/issues/2198 echo "GRUB_DEFAULT=saved" >> /etc/default/grub @@ -58,7 +58,7 @@ fi #====================================== # Delete & lock the root user password #-------------------------------------- -if [[ "$kiwi_profiles" == *"Cloud"* ]] || [[ "$kiwi_profiles" == *"Disk"* ]] || [[ "$kiwi_profiles" == *"Live"* ]]; then +if [[ "$kiwi_profiles" == *"Cloud"* ]] || [[ "$kiwi_profiles" == *"Disk"* ]] || [[ "$kiwi_profiles" == *"Live"* ]] || [[ "$kiwi_profiles" == *"WSL"* ]]; then passwd -d root passwd -l root fi diff --git a/teams/cloud/wsl.xml b/teams/cloud/wsl.xml new file mode 100644 index 0000000..aae883f --- /dev/null +++ b/teams/cloud/wsl.xml @@ -0,0 +1,68 @@ + + + + + + + Etc/UTC + en_US + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tmt/plans/wsl/build.fmf b/tmt/plans/wsl/build.fmf new file mode 100644 index 0000000..7a9094c --- /dev/null +++ b/tmt/plans/wsl/build.fmf @@ -0,0 +1,9 @@ +summary: Build the Windows Subsystem for Linux image +discover: + how: fmf +environment: + image_type: tbz + image_profile: WSL-Base + kiwi_file: Fedora.kiwi +execute: + how: tmt