Andrei Borzenkov composed on 2024-05-30 09:14 (UTC+0300):
Felix Miata wrote:
issue-generator.service is WantedBy=default.target. Is default.target actually used during boot?
More often than not, no. Usually default is defined as graphical, but most boots are maintenance boots, so kernel cmdline includes a 3.
Which explains your problem.
Not really, since this is the situation with all openSUSE installations here, and only some of them fail to start issue-generator.service automatically.
I tried changing WantedBy from default to multi-user, but it didn't help.
Explain step by step what you did.
# systemctl edit /etc/systemd/system/issue-generator.service copy [Install] WantedBy=multi-user.target from lower part of file to ~line 3 s/graphical/multi-user/ save/exit # Reboot What you didn't quote from my previous post indicates the resulting system state: Felix Miata composed on 2024-05-29 18:10 (UTC-0400):
# cat /etc/systemd/system/issue-generator.service.d/override.conf [Install] WantedBy=multi-user.target # systemctl cat issue-generator.service # /usr/lib/systemd/system/issue-generator.service [Unit] Description=Generate issue file for login session Before=systemd-user-sessions.service
[Service] Type=oneshot ExecStart=/usr/sbin/issue-generator
[Install] WantedBy=default.target
# /etc/systemd/system/issue-generator.service.d/override.conf [Install] WantedBy=multi-user.target
Given default.target for most installations is graphical.target, why is the default state WantedBy=default.target in the first place? Which users who rarely or never see a VT have any care whether issue-generator runs or not? It's value is in levels less than graphical.target. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata