Skip to content

Commit

Permalink
v8.25
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
MichaIng committed Nov 30, 2023
1 parent 8b7d571 commit e0f34bc
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions dietpi/func/dietpi-set_hardware
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e0f34bc

Please sign in to comment.