Bug#1005223: bad package dependencies, power button not working

Michael Biebl biebl at debian.org
Wed Feb 9 09:40:40 GMT 2022


Am 09.02.22 um 10:20 schrieb Harald Dunkel:
> Package: systemd
> Version: 247.3-6
> 
> I have used debootstrap to install Debian on an old qnap. Problem:
> The power button appears to be ignored, i.e. I have to login remotely
> to run poweroff. Too bad that PermitRootLogin in sshd_config doesn't
> allow.
> 
> This is basic functionality and should work right from the start.
> AFAICT there is no such problem for sysvinit-core.

For legacy sysvinit you probably need something like acpid which is not 
installed either. At least sysvinit itself does not have any power 
button handling. That said, what sysvinit does is not really relevant 
anymore.

> After some research I found out that dbus wasn't installed. I would
> suggest to move dbus to Required in systemd's package dependencies.

systemd recommends dbus and recommends are installed by default.

We assume that users that opt out of this default behaviour know what 
they are doing.

That said, debootstrap ttbomk does not respect Recommends, which is 
probably why you ended up without dbus.

In d-i, this is solved by having a "standard task", which installs all 
packages with prio standard (and the priority of dbus was bumped to 
standard accordingly.)

If you want to intall debian manually via debootstrap my recommendation 
thus is to install all the packages from the standard task
https://wiki.debian.org/tasksel#A.22standard.22_task
This will get you an installation that is closer to what d-i would create.

The reason why dbus is only a recommends in systemd is that we want to 
allow for more minimal installations (like in containers, single user 
servers) where logind is not strictly necessary.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20220209/8150c51f/attachment-0001.sig>


More information about the Pkg-systemd-maintainers mailing list