From cc16878fd831b195721fb6deb1fa5560cb33735b Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Sat, 14 Dec 2024 01:17:29 -0700 Subject: [PATCH] wsl: start to setup profiles --- config.sh | 14 ++++- .../{rocky-live-kde.ks => rocky-live-kde.xml} | 0 configs/rocky-wsl.xml | 25 ++++++++ wsl/default.xml | 12 ---- wsl/wsl.xml | 63 +++++++++++++++++++ 5 files changed, 101 insertions(+), 13 deletions(-) rename configs/{rocky-live-kde.ks => rocky-live-kde.xml} (100%) create mode 100644 configs/rocky-wsl.xml delete mode 100644 wsl/default.xml create mode 100644 wsl/wsl.xml diff --git a/config.sh b/config.sh index a473a07..7de1831 100644 --- a/config.sh +++ b/config.sh @@ -774,13 +774,19 @@ EOF # ################################################################################ +################################################################################ +# WSL + +# +################################################################################ + cat /dev/null > /etc/machine-id # Gets around grub-bls issue echo "GRUB_DEFAULT=saved" >> /etc/default/grub # All cloud and live -if [[ "$kiwi_profiles" == *"Cloud"* ]] || [[ "$kiwi_profiles" == *"Live"* ]]; then +if [[ "$kiwi_profiles" == *"Cloud"* ]] || [[ "$kiwi_profiles" == *"Live"* ]] || [[ "$kiwi_profiles" == *"WSL"* ]]; then passwd -d root passwd -l root fi @@ -885,3 +891,9 @@ if [[ "$kiwi_profiles" == *"SBC"* ]]; then genericarm_sbc_steps fi fi + +# WSL Only + +if [[ "$kiwi_profiles" == *"WSL"* ]]; then + common_wsl_steps +fi diff --git a/configs/rocky-live-kde.ks b/configs/rocky-live-kde.xml similarity index 100% rename from configs/rocky-live-kde.ks rename to configs/rocky-live-kde.xml diff --git a/configs/rocky-wsl.xml b/configs/rocky-wsl.xml new file mode 100644 index 0000000..4ea0063 --- /dev/null +++ b/configs/rocky-wsl.xml @@ -0,0 +1,25 @@ + + + + + Release Engineering (SIG/Core) + releng@rockylinux.org + Rocky Linux + + + 9 + dnf + en_US + us + UTC + 9 + + + + + + + + + + diff --git a/wsl/default.xml b/wsl/default.xml deleted file mode 100644 index c3a09c3..0000000 --- a/wsl/default.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/wsl/wsl.xml b/wsl/wsl.xml new file mode 100644 index 0000000..c4a0d4b --- /dev/null +++ b/wsl/wsl.xml @@ -0,0 +1,63 @@ + + + + + + + UTC + en_US + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +