From c4a4cba8e2ef552f6bfd39bdfd56ee2ab1a77a5f Mon Sep 17 00:00:00 2001 From: frederik Date: Wed, 31 Jan 2024 13:36:06 +0100 Subject: [PATCH] fix: /etc/systemd/system/getty@tty1.service.d does not exist on Raspbian Bullseye --- scripts/install_services.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install_services.sh b/scripts/install_services.sh index 4173cdd..0bc969f 100755 --- a/scripts/install_services.sh +++ b/scripts/install_services.sh @@ -99,6 +99,9 @@ set_login() { if ! [ -d /etc/lightdm ];then systemctl set-default multi-user.target ln -fs /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty1.service + if ! [ -d /etc/systemd/system/getty@tty1.service.d ];then + mkdir /etc/systemd/system/getty@tty1.service.d + fi cat > /etc/systemd/system/getty@tty1.service.d/autologin.conf << EOF [Service] ExecStart=