Skip to content

Commit

Permalink
v9.9
Browse files Browse the repository at this point in the history
- DietPi-Installer | Enable systemd-logind by default on VMs for ACPI functionality, required for shutdown/reboot via virtualiser. It is usually expected by users, and VMs are usually not that low on resources, that those two processes with ~10 MiB additional RAM usage would cause any issues.
  • Loading branch information
MichaIng committed Dec 15, 2024
1 parent 957667a commit c7e7572
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion .build/images/dietpi-build
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,6 @@ then
# - Mount and edit dietpi.txt
G_EXEC mkdir rootfs
G_EXEC mount "${FP_LOOP}p1" rootfs
G_CONFIG_INJECT 'AUTO_UNMASK_LOGIND=' 'AUTO_UNMASK_LOGIND=1' rootfs/boot/dietpi.txt
# - Remove loop device
G_EXEC sync
G_EXEC sleep 1
Expand Down
2 changes: 2 additions & 0 deletions .build/images/dietpi-installer
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,8 @@ setenv rootuuid "true"' /boot/boot.cmd
then
# VM: Install tiny-initramfs with limited features but sufficient and much smaller + faster
apackages+=('tiny-initramfs')
# Enable systemd-logind by default for ACPI functionality, required for shutdown/reboot via virtualiser
G_CONFIG_INJECT 'AUTO_UNMASK_LOGIND=' 'AUTO_UNMASK_LOGIND=1' /boot/dietpi.txt
else
# Install and use zstd for better initramfs compression
apackages+=('initramfs-tools' 'zstd')
Expand Down

0 comments on commit c7e7572

Please sign in to comment.