-
Bug
-
Resolution: Duplicate
-
Undefined
-
None
-
None
-
None
-
Low
-
None
Please add the following Display Icons for RHEL 9/10 and other versions to be be built within the WSL/WSL2 images for RHEL releases.
Issue: When any user uses a WSL/WSL2 from the RHEL download page while in the Windows Subsystem for Linux the default Icon for RHEL releases is the Generic "Tux" Icon. This may lead to confusion with other distros if the user has multiple distros in their WSL setup.
Description of the Specification for the OS DISPLAY ICON within the WSL/WSL2 images file format tarball:
Details of the Standard spec for the file: /etc/wsl-distribution.conf
LINK:
https://learn.microsoft.com/en-us/windows/wsl/build-custom-distro
Custom Build file for a WWSL ( basically a tar ball )
Add the WSL distribution configuration file
The distribution configuration file, /etc/wsl-distribution.conf, defines how the Linux distribution should be configured when first launched by the user. This file can be used to interactively create a user account, show a license agreement, etc.
Here is a sample /etc/wsl-distribution.conf file:
Bash
- /etc/wsl-distribution.conf
[oobe]
command = /etc/oobe.sh
defaultUid = 1000
defaultName = my-distro
[shortcut]
enabled = true
icon = /usr/lib/wsl/my-icon.ico
[windowsterminal]
enabled = true
ProfileTemplate = /usr/lib/wsl/terminal-profile.json
So we would need a simple /etc/wsl-distribution.conf file for the WLS builds
EXAMPLE:
File Contents of: /etc/wsl-distribution.conf
Note: this file in the tarball
[shortcut]
enabled = true
icon = /usr/lib/wsl/rhel.ico
So likely whomever packages the images would need to add this to their build script.
Article Link:
How is Red Hat Enterprise Linux (RHEL) supported on Microsoft Windows Subsystem for Linux (WSL)?
https://access.redhat.com/articles/7115538
More Information:
Reported by User using WSL RHEL image from site:
Specifically RHEL 10 from page:
https://access.redhat.com/downloads/content/479/ver=/rhel---10/10.0/x86_64/product-software
File in Question:
Red Hat Enterprise Linux 10.0 WSL2 Image
Last modified: 2025-04-25 SHA-256 Checksum: dccb2abb166981fa7598e948f9cab029aa1775219f8249fd54760ddd0f2b8910
File Size: 126 MB
RHEL 10 wls tarball dir listing of wsl* in /etc
$ ls -algG rhel10wsl/etc/wsl*
rw-rr-. 1 21 Apr 23 08:16 rhel10wsl/etc/wsl.conf
I also verified the RHEL 9.5 WSL image also lacked the file: wsl-dsitribution.conf
$ ls -algG rhel09wsl/etc/wsl*
rw-rr-. 1 21 Mar 20 20:25 rhel09wsl/etc/wsl.conf
- is duplicated by
-
HMS-8562 Add Icons for RHEL releases on WSL images
-
- Closed
-