From a03af831261e7f60002c0b05e940398928c5fe61 Mon Sep 17 00:00:00 2001 From: Damien Date: Tue, 26 May 2026 17:52:54 +0200 Subject: [PATCH] Force tty1 respawn after autologin change --- openbao/install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openbao/install.sh b/openbao/install.sh index 03be345..c8be7f3 100755 --- a/openbao/install.sh +++ b/openbao/install.sh @@ -488,6 +488,11 @@ EOF # Tell PID 1 to re-read /etc/inittab so the change takes effect without a reboot. kill -HUP 1 2>/dev/null || true + # Kick any getty/agetty still attached to tty1 so init respawns it *now* with + # the new line — otherwise the first web-console session lands on the stale + # process and the operator has to type `exit` once before autologin kicks in. + pkill -KILL -f '(getty|agetty).*tty1' 2>/dev/null || true + configure_tailscale_proxy log_info "Configuring MOTD..."