From 526063b31bfaf27636411701c3e07edb2708c869 Mon Sep 17 00:00:00 2001 From: Damien Date: Mon, 4 May 2026 14:51:03 +0200 Subject: [PATCH] Enable console auto-login for root This sets up automatic login on the console by modifying the agetty options in /etc/conf.d/agetty and updating the inittab configuration accordingly. --- gitea-runner/install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gitea-runner/install.sh b/gitea-runner/install.sh index 149e759..7565745 100644 --- a/gitea-runner/install.sh +++ b/gitea-runner/install.sh @@ -187,6 +187,13 @@ EOF chmod +x /etc/init.d/gitea-runner rc-update add gitea-runner default > /dev/null + log_info "Enabling console auto-login..." + mkdir -p /etc/conf.d + cat <<'EOF' > /etc/conf.d/agetty +agetty_options="--autologin root --noclear" +EOF + sed -i 's|^tty1::respawn:/sbin/getty.*|tty1::respawn:/sbin/agetty --autologin root --noclear 38400 tty1|' /etc/inittab + log_info "Cleaning up..." rm -rf /var/cache/apk/*