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