From e7e538d75c6dfcee83b9d9226ed0e9b3337ea791 Mon Sep 17 00:00:00 2001 From: Damien Date: Sun, 14 Jun 2026 14:27:49 +0200 Subject: [PATCH] Remove console auto-login feature --- komodo/install.sh | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/komodo/install.sh b/komodo/install.sh index 4ebc2cb..c169399 100755 --- a/komodo/install.sh +++ b/komodo/install.sh @@ -337,7 +337,7 @@ bring_up_stack() { } # ============================================================ -# Log hygiene + console auto-login (repo conventions) +# Log hygiene # ============================================================ configure_log_hygiene() { # Bound the journal-equivalent — Alpine uses OpenRC, so we cap Docker's @@ -359,16 +359,6 @@ EOF || rc-service docker restart >/dev/null 2>&1 || true } -configure_console_autologin() { - log_info "Enabling console auto-login on tty1..." - # Alpine's busybox getty does not support --autologin; use util-linux's agetty. - apk add --no-cache agetty >/dev/null 2>&1 || apk add --no-cache util-linux >/dev/null - sed -i '/^tty1::/d' /etc/inittab - echo 'tty1::respawn:/sbin/agetty --autologin root --noclear 38400 tty1' >> /etc/inittab - kill -HUP 1 2>/dev/null || true - pkill -KILL -f '(getty|agetty).*tty1' 2>/dev/null || true -} - write_motd() { log_info "Configuring MOTD..." # Quoted heredoc: every variable in the body is resolved at login time, not @@ -436,7 +426,6 @@ main() { write_compose_files bring_up_stack configure_log_hygiene - configure_console_autologin configure_tailscale_proxy write_motd