Files
HoralOS/Fedora.kiwi
T
Jeremy Cline 4b4a83b33f Add a WSL definition and config snippets
This introduces the beginnings of an image definition for Windows
Subsystem for Linux (WSL).

The package list is based on the core and standard grouplists. Some
packages, like the kernel, dracut, and so on, are omitted as they are
unnecessary. Others, like audit, don't work in the environment. Finally,
many packages are omitted since I thought "people probably won't want
that", so the package list is completely up for debate. This is just a
reasonable starting point that works.

Build/test instructions:

To build the tarball:

  $ ./kiwi-build --image-profile=WSL-Base --image-type=tbz --output-dir=./build/

Get it to a Windows host with WSL installed. To boot it with cgroupsv2,
add the following to `.wslconfig` in the Windows host home folder:

[wsl2]
kernelCommandLine=systemd.unified_cgroup_hierarchhy=1 cgroup_no_v1=all

This assumes the latest WSL release is installed, at least version 2.4.4:

  $ wsl --install --from-file .\path\to\the\fedora.tar.xz

Alternatively, if you're using something prior to version 2.4.4:

  $ wsl --import --version=2 Fedora C:\path\to\storage\Fedora\ .\path\to\the\fedora.tar.xz

Finally, run it with:

  $ wsl -d Fedora

If you are using 2.4.4+, you will be prompted for a username and then
dropped into an interactive shell with that user and passwordless sudo
access.

If you're using an older version, you need to do:

  $ wsl -d Fedora -u root
  # /usr/libexec/wsl/oobe.sh

Signed-off-by: Jeremy Cline <jeremycline@linux.microsoft.com>
2025-01-31 10:52:54 -05:00

64 lines
2.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<image schemaversion="7.4" name="Fedora">
<description type="system">
<author>Fedora Project Contributors</author>
<contact>devel@lists.fedoraproject.org</contact>
<specification>Fedora Linux</specification>
</description>
<preferences>
<version>Rawhide</version>
<packagemanager>dnf5</packagemanager>
<locale>en_US</locale>
<keytable>us</keytable>
<timezone>UTC</timezone>
<release-version>rawhide</release-version>
</preferences>
<include from="this://./repositories/core.xml"/>
<include from="this://./components/common.xml"/>
<include from="this://./components/boot.xml"/>
<include from="this://./components/desktops/common.xml"/>
<include from="this://./components/desktops/gnome.xml"/>
<include from="this://./components/desktops/kde.xml"/>
<include from="this://./components/desktops/xfce.xml"/>
<include from="this://./components/desktops/cinnamon.xml"/>
<include from="this://./components/desktops/mate.xml"/>
<include from="this://./components/desktops/i3.xml"/>
<include from="this://./components/desktops/lxqt.xml"/>
<include from="this://./components/desktops/lxde.xml"/>
<include from="this://./components/desktops/soas.xml"/>
<include from="this://./components/desktops/phosh.xml"/>
<include from="this://./components/desktops/sway.xml"/>
<include from="this://./components/desktops/budgie.xml"/>
<include from="this://./components/desktops/miraclewm.xml"/>
<include from="this://./components/desktops/cosmic.xml"/>
<include from="this://./components/liveinstall.xml"/>
<include from="this://./components/users.xml"/>
<include from="this://./teams/base.xml"/>
<include from="this://./teams/cloud/cloud.xml"/>
<include from="this://./teams/cloud/container.xml"/>
<include from="this://./teams/cloud/vagrant.xml"/>
<include from="this://./teams/cloud/wsl.xml"/>
<include from="this://./teams/server.xml"/>
<include from="this://./teams/workstation.xml"/>
<include from="this://./teams/kde.xml"/>
<include from="this://./teams/xfce.xml"/>
<include from="this://./teams/cinnamon.xml"/>
<include from="this://./teams/mate.xml"/>
<include from="this://./teams/i3.xml"/>
<include from="this://./teams/lxqt.xml"/>
<include from="this://./teams/lxde.xml"/>
<include from="this://./teams/soas.xml"/>
<include from="this://./teams/sway.xml"/>
<include from="this://./teams/budgie.xml"/>
<include from="this://./teams/miraclewm.xml"/>
<include from="this://./teams/cosmic.xml"/>
<include from="this://./teams/asahi.xml"/>
<include from="this://./teams/python.xml"/>
<include from="this://./teams/scitech.xml"/>
<packages type="bootstrap">
<package name="basesystem"/>
<package name="filesystem"/>
</packages>
</image>