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.



Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to