Skip to content

Distributions: Add Rocky Linux 9 and 10 - #13094

Closed
Lukas Magauer (lumarel) wants to merge 1 commit into
microsoft:masterfrom
lumarel:feature/distribution-rocky-linux
Closed

Lukas Magauer (lumarel) wants to merge 1 commit into
microsoft:masterfrom
lumarel:feature/distribution-rocky-linux

Conversation

@lumarel

Copy link
Copy Markdown

Summary of the Pull Request

This PR will add Rocky Linux as a new distribution to the DistributionInfo.json list. More specifically the releases of 9.6 and 10.0.
The WSL images are hosted on the main CDN of the project and I made sure with releng that the links should not break in the future, even if the content is moved to the vault.

Further these images are built with KIWI-ng with these recipes: 9 and 10

And finally I looked at the PR for Fedora and hopefully checked everything that might be necessary, if there is anything I/we might be able to improve I'm sure going to do so! 🙂
(beside updating the image when we build a new version of course in the future)

Cheers, Lukas

PR Checklist

  • Closes: Link to issue
  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated if needed and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated if needed
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here

@lumarel

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried the distro out and looks great to me. Thanks for doing the work to add this!! :)

@lumarel

Copy link
Copy Markdown
Author

Cool!
Thanks for making it possible to add it 😇 (open source is great!)

@OneBlue

Copy link
Copy Markdown
Collaborator

Thank you for doing Lukas Magauer (@lumarel).

This looks good overall, but I want to point a couple things:

  1. /usr/libexec/wsl/oobe.sh manually writes the default user to /etc/wsl.conf. We don't recommend doing that since this can break wsl --manage <distro> --set-default-user, and shouldn't be needed since you already set defaultUid to 1000 in /etc/wsl-distribution.conf

  2. The tars all have the security.selinux extended attribute set, which breaks when importing the distribution with WSL1. Given that WSL2 doesn't support selinux, I'd recommend removing those to remain compatible with WSL1

You can use validate-modern.py to validate that the extended attributes are supported by WSL1. Sample usage:

pip install -r distributions\requirements.txt
python distributions\validate-modern.py --tar Rocky-9-WSL-Base-9.6-20250531.0.x86_64.wsl

Let me know what you'd like to do above those two, you get the final say as the distribution maintainer, but we definitely recommend fixing those before merging, since that will give your users a better experience.

@OneBlue Blue (OneBlue) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting on maintainers to reply on above feedback

@jeremycline

Copy link
Copy Markdown
Member

Thank you for doing Lukas Magauer (@lumarel).

This looks good overall, but I want to point a couple things:

  1. /usr/libexec/wsl/oobe.sh manually writes the default user to /etc/wsl.conf. We don't recommend doing that since this can break wsl --manage <distro> --set-default-user, and shouldn't be needed since you already set defaultUid to 1000 in /etc/wsl-distribution.conf

For what it's worth this is probably because I did this in Fedora (sorry) - it's now fixed there so if Rocky pulls the latest sources from Fedora Rawhide this particular issue will be addressed.

@lumarel

Lukas Magauer (lumarel) commented Jul 9, 2025 •

Copy link
Copy Markdown
Author

Took me a long time to get back on this (sorry, work ate my time)
That's a great hint, thanks for that, Jeremy Cline (@jeremycline). (beside I'm really happy to having had your implementation as template)

I will get that sorted out hopefully very soon.

@tinlittle

Copy link
Copy Markdown

It's been 70 years meme inserted here.

@benhillis

Copy link
Copy Markdown
Member

Closing old pull requests with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants