Skip to content

use for all services which makes sense in headless mode target multi-user#2245

Merged
jreidinger merged 1 commit intomasterfrom
textmode
Apr 4, 2025
Merged

use for all services which makes sense in headless mode target multi-user#2245
jreidinger merged 1 commit intomasterfrom
textmode

Conversation

@jreidinger
Copy link
Contributor

Problem

Almost all agama systemd services uses default.target. This has two drawbacks:

  1. it is discouraged by systemd itself - https://www.freedesktop.org/software/systemd/man/latest/systemd.special.html#default.target ( For typical unit files please set "WantedBy=" to a regular target (like multi-user.target or graphical.target), instead of default.target, since such a service will also be run on special boots like on system update, emergency boot…
  2. it means that user wants to run installer in headless mode and use standard systemd.unit=multi-user.target it does not start agama and other services as live iso has as default graphical.

Solution

change services to use multi-user everywhere where it does not need graphical target ( so all of them as only x11 autologin is for graphical )

Testing

  • Tested manually - both with default and with headless setup

…user instead of default which is graphical on live medium
Copy link
Contributor

@lslezak lslezak left a comment

Choose a reason for hiding this comment

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

LGTM

But I think we should document it somewhere how to start headless (remote or CLI only) installation.

@jreidinger jreidinger merged commit 4af874e into master Apr 4, 2025
10 checks passed
@jreidinger jreidinger deleted the textmode branch April 4, 2025 07:44
@imobachgs imobachgs mentioned this pull request Apr 22, 2025
imobachgs added a commit that referenced this pull request Apr 22, 2025
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