From 0d10cf02152554f5e847c7cd4ee1d41ee29fa913 Mon Sep 17 00:00:00 2001 From: mews-se <58894405+mews-se@users.noreply.github.com> Date: Sun, 1 Nov 2026 00:19:04 +0100 Subject: [PATCH] Keep the autologin on tty1 with core's new getty override core now writes one drop-in for every container-getty instance, so tty2 logs in as root too and DietPi's first run setup can start there, out of sight of the Proxmox console. Move the drop-in to container-getty@1. The same core change fixed TERM on that line, so the sed is no longer needed. --- install/dietpi-install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install/dietpi-install.sh b/install/dietpi-install.sh index eb7876d18a..53bcd3a960 100755 --- a/install/dietpi-install.sh +++ b/install/dietpi-install.sh @@ -45,8 +45,9 @@ msg_ok "Configured DietPi" customize # Autologin on tty1 only: DietPi's first run setup runs on the first console that logs in, and the Proxmox UI attaches to tty1 rm -f /etc/systemd/system/console-getty.service.d/override.conf -# agetty takes the "-" after the baud rates as the terminal type, and DietPi's first run setup dies on TERM=- -if [[ -f /etc/systemd/system/container-getty@1.service.d/override.conf ]]; then - sed -i 's/ - linux$/ linux/' /etc/systemd/system/container-getty@1.service.d/override.conf +if [[ -f /etc/systemd/system/container-getty@.service.d/override.conf ]]; then + mkdir -p /etc/systemd/system/container-getty@1.service.d + mv /etc/systemd/system/container-getty@.service.d/override.conf /etc/systemd/system/container-getty@1.service.d/ + rmdir /etc/systemd/system/container-getty@.service.d fi cleanup_lxc