-
Notifications
You must be signed in to change notification settings - Fork 847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Kali to modern distributions #12472
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution to WSL.
The following fatal errors have been found in this pull request:
- kali/None: Found no default distribution
The following suggestions have been found in this pull request:
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/local-fs.target.wants/tmp.mount
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev-early.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
- kali/kali-linux: Found discouraged system unit: /etc/systemd/system/network-online.target.wants/networking.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/local-fs.target.wants/tmp.mount
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev-early.service
- kali/kali-linux: Found discouraged system unit: /etc/systemd/system/network-online.target.wants/networking.service
@microsoft-github-policy-service agree company="OffSec" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution to WSL.
No fatal errors have been found.
The following suggestions have been found in this pull request:
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/local-fs.target.wants/tmp.mount
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev-early.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
- kali/kali-linux: Found discouraged system unit: /etc/systemd/system/network-online.target.wants/networking.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/local-fs.target.wants/tmp.mount
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev-early.service
- kali/kali-linux: Found discouraged system unit: /etc/systemd/system/network-online.target.wants/networking.service
Thank you @Gamb1ts ! Feel free to ignore the bot's warnings on the masked systemd units, I need to go fix that ! The tar & manifest look great ! One small suggestion that I have would to use Something like this should do the trick:
|
What's the goal of sleeping to wait for systemd in the oobe script? If you want to make sure that no user processes are launched before systemd is up, that should already be guaranteed as part of WSL. Is that not the behavior you are seeing? |
Early in my testing I found that the system setup was too quick which led to issues using certain commands. However, this was prior to masking the recommended systemd units. I will re-visit this and see if in its current state the wait is necessary. Unfortunately I will have to mark this as WIP until next week, we will need to change where we host the image. Next week I will supply the new URL and checksums. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution to WSL.
No fatal errors have been found.
The following suggestions have been found in this pull request:
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev-early.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/local-fs.target.wants/tmp.mount
- kali/kali-linux: Found discouraged system unit: /etc/systemd/system/network-online.target.wants/networking.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev-early.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/local-fs.target.wants/tmp.mount
- kali/kali-linux: Found discouraged system unit: /etc/systemd/system/network-online.target.wants/networking.service
I have disabled the wait on systemd, I was able to confirm that it is not needed. I have also updated the URL to utilize our mirror kali.download. Unless there is any other feedback, the Kali team is good with the PR at this stage. |
FYI when I tried it locally, I got the following output:
Looking through dmesg, I can see the following logline:
Let me see if this can be solved from the WSL side. |
Looks like we can solve this on the WSL via: In the meantime, I'd recommend adding the logic to wait to systemd to the OOBE, so it doesn't print the above the error. I refined my earlier suggestion to make the output a bit cleaner:
(that way the user won't get |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution to WSL.
The following fatal errors have been found in this pull request:
- kali/kali-linux: URL https://kali.download/wsl-images/current/kali-linux-2024.4-wsl-rootfs-amd64.wsl Sha256 does not match. Expected: 251ae5b9a05697da301fa5158d316f838e8130fef152df65016c6e17febfaa54, actual: 7beaaa0a03beb533761c4638654bcc21721c5248b8fc1fd3223375c71297f969
- kali/kali-linux: URL https://kali.download/wsl-images/current/kali-linux-2024.4-wsl-rootfs-arm64.wsl Sha256 does not match. Expected: 1ac937dd49c621063272524cb1b14ac4f1631fbbfe3df16685ad0924cb2708cf, actual: 65fc698ae6ee5da3bca281b4e241e92e42771541121bd018ffdd78f43c5a2651
The following suggestions have been found in this pull request:
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev-early.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/local-fs.target.wants/tmp.mount
- kali/kali-linux: Found discouraged system unit: /etc/systemd/system/network-online.target.wants/networking.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev-early.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/local-fs.target.wants/tmp.mount
- kali/kali-linux: Found discouraged system unit: /etc/systemd/system/network-online.target.wants/networking.service
Yeah that was the same issue I was seeing previously. With the latest pre-release WSL installed I was no longer having the issue FWIW. I have re-added the systemd wait and re-built the images. The checksums have been updated but the link is the same. The site is heavily cached so may need to clear it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution to WSL.
No fatal errors have been found.
The following suggestions have been found in this pull request:
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev-early.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/local-fs.target.wants/tmp.mount
- kali/kali-linux: Found discouraged system unit: /etc/systemd/system/network-online.target.wants/networking.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev-early.service
- kali/kali-linux: Found discouraged system unit: /usr/lib/systemd/system/local-fs.target.wants/tmp.mount
- kali/kali-linux: Found discouraged system unit: /etc/systemd/system/network-online.target.wants/networking.service
Thank you @Gamb1ts. I restarted the pipeline, and the hashes match now. Although I still see the systemd wait logic being commented |
I will rebuild the image and verify locally it is back in |
Re-built and verified the oobe has the systemd wait |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution to WSL.
No fatal errors have been found.
No suggestions have been found.
Thank you @Gamb1ts. Just tried it out, the OOBE works perfectly now. Feel free to merge whenever ready. |
No description provided.