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

Systemd as command not available on ubuntu 24.10, only have systemctl #1019

Open
lucashc opened this issue Jan 10, 2025 · 2 comments
Open

Systemd as command not available on ubuntu 24.10, only have systemctl #1019

lucashc opened this issue Jan 10, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@lucashc
Copy link

lucashc commented Jan 10, 2025

Bug description

The bootstrap.py script complains that there is no SystemD installed on Ubuntu Servere 24.10. This is false, the systemd binary is not in path, but systemctl is.
Should most likely remove not shutil.which("systemd") at line 232 in bootstrap.py

How to reproduce

  1. Use freshly installed Ubuntu 24.10
  2. Use the custom server installation guide that runs bootstrap.py

Expected behaviour

It should work in a SystemD environment without the systemd binary being in path.

Actual behaviour

Output: Systemd is required to run TLJH

Your personal set up

Ubuntu Server 24.10 in a local KVM VM. Freshly installed, only ran sudo apt install python3 python3-dev git curl as listed in the guide.

@lucashc lucashc added the bug Something isn't working label Jan 10, 2025
@lucashc
Copy link
Author

lucashc commented Jan 10, 2025

Deleting that part let's the script run happily

@lucashc
Copy link
Author

lucashc commented Jan 10, 2025

I can fix this bug by changing the check. Docker containers might ship SystemD binaries, but do not run them. Therefore, we have to check if SystemD is in a usable state.
To do so, we need to issue systemctl is-system-running --quiet and check the exit code.
If agreed, I can submit such a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant