On Tue, Jan 17, 2023 at 11:26 AM Mathias Homann <Mathias.Homann@opensuse.org> wrote:
Am 17.01.2023 um 11:02 schrieb Andrei Borzenkov:
On Tue, Jan 17, 2023 at 12:52 PM Mathias Homann <Mathias.Homann@opensuse.org> wrote:
Sidenote: it is extremely simple to "get" any linux into your WSL, I actually have a RHEL 8 in my WSL as well :)
Care to elaborate howto for dummies?
1. take any linux that supports docker
2. run a base container based on the linux distribution you want, apply customizations if required
3. once the container has terminated, export the container as a tar file
4. import that tarfile in WSL like so: |wsl --import <DistroName> <InstallLocation> <InstallTarFile>|
That's all folks.
In greater detail:
https://learn.microsoft.com/en-us/windows/wsl/use-custom-distro
That is how I got RHEL8 into WSL on my computer - Exported a container based on the freely available/usable UBI8 image :)
We have a Leap OEM installer that we build with KIWI. It is a disk image (including the partition table). It is 'installed' by dd to the disk. KIWI makes a nice boot wrapper that lets you select the disk and does the dd. Or just dd the image yourself. When it is first booted, the usual locale questions are asked. Like a new laptop would usually do. Maybe I can tar the OS partition and try this. I'm mainly curious how the /etc/fstab is managed so all is found as expected. Maybe the OS's fstab is not used to start the OS? Aren't the images in the Microsoft store available somewhere? In OBS? -- Roger Oberholtzer