autologin

This commit is contained in:
CanbiZ 2025-12-08 15:15:42 +01:00
parent dd0f7b96f8
commit 4076b7e632
3 changed files with 235 additions and 230 deletions

View File

@ -882,6 +882,11 @@ ExecStart=
ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,38400,9600 $TERM
EOF
fi
# Reload systemd and restart getty services to apply auto-login
systemctl daemon-reload
systemctl restart console-getty.service &>/dev/null || true
systemctl restart container-getty@1.service &>/dev/null || true
;;
openrc)