From e0f34bc389834fbb6ea40e237a3258d3ffc8327a Mon Sep 17 00:00:00 2001 From: MichaIng Date: Thu, 30 Nov 2023 21:35:00 +0100 Subject: [PATCH] v8.25 - DietPi-Set_hardware | qemu-guest-agent: Enable logind in every case. On Bookworm, it is no strict dependency, but ACPI is required, which is provided by logind. acpid would be an alternative, but since logind is required for other software options and features as well, it is overall the better choice. --- dietpi/func/dietpi-set_hardware | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/dietpi/func/dietpi-set_hardware b/dietpi/func/dietpi-set_hardware index c5e271a83b..830cfedbbe 100755 --- a/dietpi/func/dietpi-set_hardware +++ b/dietpi/func/dietpi-set_hardware @@ -2384,13 +2384,11 @@ _EOF_ # shellcheck disable=SC2015 modprobe 'virtio_console' &> /dev/null && [[ -e '/dev/virtio-ports/org.qemu.guest_agent.0' ]] || { G_DIETPI-NOTIFY 2 'No QEMU Guest Agent node detected, skipping daemon installation ...'; return 1; } # Exit if node is missing - # Bullseye: logind and hence dbus required - if (( $G_DISTRO == 6 )) - then - G_AG_CHECK_INSTALL_PREREQ dbus - G_EXEC systemctl unmask systemd-logind - G_EXEC systemctl start systemd-logind - fi + # Enable logind for required ACPI functionality + G_AG_CHECK_INSTALL_PREREQ dbus + G_EXEC systemctl unmask systemd-logind + G_EXEC systemctl start systemd-logind + G_AG_CHECK_INSTALL_PREREQ qemu-guest-agent }