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 runlevel check not working in debian, ubuntu and archlinux #1286

Closed
marderbot opened this issue Apr 20, 2022 · 1 comment · Fixed by #1296
Closed

Systemd runlevel check not working in debian, ubuntu and archlinux #1286

marderbot opened this issue Apr 20, 2022 · 1 comment · Fixed by #1296
Assignees

Comments

@marderbot
Copy link

# Checking if we can find the systemd default target
LogText "Test: Checking for systemd default.target"
if [ -L ${ROOTDIR}etc/systemd/system/default.target ]; then

The above check doesn't work in:

  • Debian 8
  • Debian 11
  • Ubuntu 20.04
  • Archlinux
  • Manjaro

Due to that file not being present in them in a default install.

It does work in recent RHEL and Fedora versions.

Using systemctl get-default would be a perfect replacement because if the system uses systemd it must be present unlike the text file.

@mboelen
Copy link
Member

mboelen commented May 14, 2024

Resolved with pull request from @konstruktoid - Thanks both!

@mboelen mboelen self-assigned this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants