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

debian: add polkit for trixie #864

Merged
merged 1 commit into from
Jan 28, 2025
Merged

Conversation

evadne
Copy link
Contributor

@evadne evadne commented Jan 28, 2025

  • polkit is needed for systemd-networkd to set hostnames
  • this operation can happen in an Incus container based on images:debian/trixie/cloud
$ incus create images:debian/trixie/cloud nettest

Then in container:

$ journalctl -u systemd-networkd
Jan 28 19:51:40 nettest systemd-networkd[189]: eth1: Gained IPv6LL
Jan 28 19:51:40 nettest systemd-networkd[189]: eth2: Gained IPv6LL
Jan 28 19:51:40 nettest systemd-networkd[189]: eth2: DHCPv4 address 192.168.254.28/24, gateway 192.168.254.1 acquired from 192.168.254.1
Jan 28 19:51:43 nettest systemd-networkd[189]: Could not set hostname: Access denied

Looks like polkit needs to be added back for trixie. Once the package is installed the error is gone.

IMHO this does need to be in place for both container and VM as in both scenarios one may have to configure network.

- polkit is needed for systemd-networkd to set hostnames
- this operation can happen in an Incus container if `cloud-init.network-config` is set.

Signed-off-by: Evadne Wu <[email protected]>
@stgraber stgraber merged commit 66d2b0e into lxc:main Jan 28, 2025
4 checks passed
@spiritLHLS
Copy link

E: Unable to locate package polkit
Error: Failed to manage packages: Failed to install packages: exit status 100
time="2025-01-31T01:46:36Z" level=error msg="Failed running distrobuilder" err="Failed to manage packages: Failed to install packages: exit status 100"
time="2025-01-31T01:46:36Z" level=info msg="Removing cache directory"

It seems to be reporting errors on trixie, please check if there is a problem.

@evadne evadne mentioned this pull request Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants