Skip to content
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

make sure the systemd-sysv package is installed #1996

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Zhoneym
Copy link

@Zhoneym Zhoneym commented Jul 31, 2024

Notice: If your Linux distribution is Debian/Ubuntu/Kali Rolling, you should not only have installed the systemd package, but also make sure the systemd-sysv package is installed.

sudo apt-get update -y && sudo apt-get install systemd systemd-sysv -y

Copy link
Contributor

Learn Build status updates of commit f51a0de:

✅ Validation status: passed

File Status Preview URL Details
WSL/systemd.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@craigloewen-msft
Copy link
Collaborator

@Zhoneym why is this command needed? Ubuntu and Debian have working systemd installs out of the box, I'm not aware of users needing to run this command to get systemd working.

@Zhoneym
Copy link
Author

Zhoneym commented Aug 17, 2024

@Zhoneym why is this command needed? Ubuntu and Debian have working systemd installs out of the box, I'm not aware of users needing to run this command to get systemd working.

@craigloewen-msft This command is not necessary for WSL2 distributions released on the Microsoft Store because the systemd-sysv package is pre installed in the official distribution. But for custom users, they usually need the debootstrap to generate rootfs (excluding the Linux kernel) and package them into tar files for archiving, and then import them into the wsl2 working environment through the wsl --import command. This makes the systemd-sysv package a mandatory installation, which is not only applicable to Debian or Ubuntu, but also to all various derivative distributions of Debian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants