Skip to content

Fix make install-as-root vs. systemd 252 bug#3022

Merged
jimklimov merged 1 commit intonetworkupstools:masterfrom
jimklimov:issue-3022
Jul 17, 2025
Merged

Fix make install-as-root vs. systemd 252 bug#3022
jimklimov merged 1 commit intonetworkupstools:masterfrom
jimklimov:issue-3022

Conversation

@jimklimov
Copy link
Copy Markdown
Member

@jimklimov jimklimov commented Jul 16, 2025

Do not overly trust in systemctl preset-all, it fails on systemd 252 (known issue which impacts e.g. whole Debian-based releases stuck with that version):

Failed to preset all units: Unit /run/systemd/transient/session-156053.scope is transient or generated.

See also:

Unfortunately, while those generated units are not related to NUT activities (e.g. auto-mount points), the tool failure does impact this BYOD scenario.

@jimklimov jimklimov added this to the 2.8.4 milestone Jul 16, 2025
@jimklimov jimklimov added bug systemd service/daemon start/stop General subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug portability We want NUT to build and run everywhere possible labels Jul 16, 2025
…-all

It fails on systemd 252 (known issue):
Failed to preset all units: Unit /run/systemd/transient/session-156053.scope is transient or generated.

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
@jimklimov jimklimov changed the title Fix make install-as-root vs. systemd 252 bug; improve upsd debug log Fix make install-as-root vs. systemd 252 bug Jul 16, 2025
@jimklimov jimklimov merged commit 33ab428 into networkupstools:master Jul 17, 2025
25 of 28 checks passed
jimklimov added a commit that referenced this pull request Jul 17, 2025
@jimklimov jimklimov deleted the issue-3022 branch July 17, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug portability We want NUT to build and run everywhere possible service/daemon start/stop General subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug systemd

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant