wsl: start to setup profiles

This commit is contained in:
Louis Abel 2024-12-14 01:17:29 -07:00
parent 388687baad
commit cc16878fd8
Signed by: label
GPG Key ID: 2A6975660E424560
5 changed files with 101 additions and 13 deletions

View File

@ -774,13 +774,19 @@ EOF
# #
################################################################################ ################################################################################
################################################################################
# WSL
#
################################################################################
cat /dev/null > /etc/machine-id cat /dev/null > /etc/machine-id
# Gets around grub-bls issue # Gets around grub-bls issue
echo "GRUB_DEFAULT=saved" >> /etc/default/grub echo "GRUB_DEFAULT=saved" >> /etc/default/grub
# All cloud and live # 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 -d root
passwd -l root passwd -l root
fi fi
@ -885,3 +891,9 @@ if [[ "$kiwi_profiles" == *"SBC"* ]]; then
genericarm_sbc_steps genericarm_sbc_steps
fi fi
fi fi
# WSL Only
if [[ "$kiwi_profiles" == *"WSL"* ]]; then
common_wsl_steps
fi

25
configs/rocky-wsl.xml Normal file
View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<image schemaversion="7.4" name="Rocky-ZZVERZZ-WSL" displayname="Rocky Linux WSL ZZVERZZ">
<description type="system">
<author>Release Engineering (SIG/Core)</author>
<contact>releng@rockylinux.org</contact>
<specification>Rocky Linux</specification>
</description>
<preferences>
<version>9</version>
<packagemanager>dnf</packagemanager>
<locale>en_US</locale>
<keytable>us</keytable>
<timezone>UTC</timezone>
<release-version>9</release-version>
</preferences>
<include from="this://./repositories/core.xml"/>
<include from="this://./components/boot.xml"/>
<include from="this://./components/users.xml"/>
<include from="this://./wsl/wsl.xml"/>
<packages type="bootstrap">
<package name="basesystem"/>
<package name="filesystem"/>
</packages>
</image>

View File

@ -1,12 +0,0 @@
<image>
<profiles>
<profile name="XFCE-Live" description="Rocky Linux XFCE">
<requires profile="Live-Base"/>
<requires profile="XFCE-Desktop"/>
</profile>
</profiles>
<packages type="bootstrap" patternType="plusRecommended" profiles="XFCE-Live">
<package name="rocky-release"/>
<package name="epel-release"/>
</packages>
</image>

63
wsl/wsl.xml Normal file
View File

@ -0,0 +1,63 @@
<image>
<profiles>
<profile name="WSL-Base" description="Windows Subsystem for Linux Base Profile"/>
</profiles>
<preferences profiles="WSL-Base">
<type image="tbz"/>
<timezone>UTC</timezone>
<locale>en_US</locale>
<rpm-locale-filtering>false</rpm-locale-filtering>
<rpm-excludedocs>false</rpm-excludedocs>
</preferences>
<packages type="bootstrap" profiles="WSL-Base">
<package name="bash"/>
<package name="coreutils"/>
<package name="dnf"/>
<package name="dnf-plugins-core"/>
<package name="policycoreutils"/>
<package name="rocky-release"/>
<package name="rpm"/>
<package name="selinux-policy-targeted"/>
</packages>
<packages type="image" patternType="plusRecommended" profiles="WSL-Base">
<package name="attr"/>
<package name="acl"/>
<package name="bash-completion"/>
<package name="bind-utils"/>
<package name="bzip2"/>
<package name="curl"/>
<package name="dbus"/>
<package name="file"/>
<package name="glibc-langpack-en"/>
<package name="gnupg2"/>
<package name="iproute"/>
<package name="iputils"/>
<package name="less"/>
<package name="lsof"/>
<package name="man-db"/>
<package name="man-pages"/>
<package name="NetworkManager"/>
<package name="nmap-ncat"/>
<package name="openssh-clients"/>
<package name="passwd"/>
<package name="pciutils"/>
<package name="procps-ng"/>
<package name="rsync"/>
<package name="shadow-utils"/>
<package name="sudo"/>
<package name="symlinks"/>
<package name="systemd-udev"/>
<package name="tar"/>
<package name="tcpdump"/>
<package name="time"/>
<package name="traceroute"/>
<package name="tree"/>
<package name="unzip"/>
<package name="usbutils"/>
<package name="util-linux"/>
<package name="vim-minimal"/>
<package name="which"/>
<package name="whois"/>
<package name="zip"/>
</packages>
</image>