DietPi icon indicating copy to clipboard operation
DietPi copied to clipboard

META | Communicate/Add choice for missing dbus on default setup

Open bbsixzz opened this issue 6 years ago • 3 comments

Creating a bug report/issue

Required Information

  • DietPi version | G_DIETPI_VERSION_CORE=6 G_DIETPI_VERSION_SUB=26 G_DIETPI_VERSION_RC=3 G_GITBRANCH='master' G_GITOWNER='MichaIng'

  • Distro version | buster 10.2

  • Kernel version | Linux DietPi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux

  • SBC device | RPi 4 Model B (armv7l)

  • Power supply used | 3A Official

  • SDcard used | SanDisk ultra

Additional Information (if applicable)

Steps to reproduce

shutdown -r +5

Expected behaviour

restart in 5 min

Actual behaviour

immediate restart

Extra details

command is run over ssh

bbsixzz avatar Dec 15 '19 12:12 bbsixzz

@bbsixzz Many thanks for your report.

For time delay on shutdown and reboot you need to enable systemd-logind:

systemctl unmask systemd-logind
G_AGI libpam-systemd

EDIT

Probably DBus is sufficient:

G_AGI dbus

Try this first before installing the whole logind dependencies as above.

MichaIng avatar Dec 15 '19 12:12 MichaIng

G_AGI dbus did the trick

Is the lack of functionality a deliberate choice, or is this something you plan on adding later?

bbsixzz avatar Dec 15 '19 21:12 bbsixzz

@bbsixzz It was a deliberate choice indeed. But we need to collect + communicate these cases better, I think, especially since shutdown command is present by default, does not give a clear error message or info about dbus need for time-based shutdown or reboot schedules, e.g. when running shutdown --help.

MichaIng avatar Dec 16 '19 00:12 MichaIng