fix: package the D-Bus system policy required for a fresh headless install#3
Open
tekgnosis-net wants to merge 1 commit into
Open
fix: package the D-Bus system policy required for a fresh headless install#3tekgnosis-net wants to merge 1 commit into
tekgnosis-net wants to merge 1 commit into
Conversation
The daemon runs on the system bus and must own org.ht32panel.Daemon, which requires an explicit D-Bus policy; without it a fresh package install fails to register the service. Add packaging/org.ht32panel.Daemon.conf, install it to /usr/share/dbus-1/system.d/, and add a postinstall hook that reloads systemd, D-Bus, and udev so it takes effect without a reboot. Stage the new files in the release workflow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The daemon runs on the system bus (
[dbus] bus = "system") and must ownorg.ht32panel.Daemon. On the system bus, owning a name requires an explicit D-Bus policy — but the deb/rpm packages don't ship one. So on a fresh package install the daemon fails to register its bus name (andht32panelctl/ the web UI can't reach it) until an admin hand-writes a policy under/etc/dbus-1/system.d/. (Found while deploying on a headless Proxmox host.)Changes
packaging/org.ht32panel.Daemon.conf— a minimal system-bus policy:rootmay ownorg.ht32panel.Daemon; local clients may call it and receive its signals./usr/share/dbus-1/system.d/org.ht32panel.Daemon.confvianfpm.yaml(deb + rpm).postinstallhook that reloads systemd, D-Bus (so the policy applies without a reboot), and udev. It does not auto-enable the service — the package shipsconfig.toml.example, so the admin createsconfig.tomlthen runssystemctl enable --now ht32-panel.service.Testing
nfpm.yamlparses with the new content entry andscripts.postinstall;postinstall.shpassessh -n.org.ht32panel.Daemonon a live system-bus deployment; this PR ships it so fresh installs work out of the box.