From e8920b246b40cb36c6d58386669717ca10e1ab94 Mon Sep 17 00:00:00 2001 From: Damien Date: Tue, 26 May 2026 15:28:07 +0200 Subject: [PATCH] Enable console auto-login on Proxmox LXCs Enable root auto-login on tty1 for faster shell access in Proxmox LXCs by configuring agetty with autologin and adding the necessary inittab entry --- README.md | 1 + openbao/install.sh | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 28852b1..836f2a9 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ These scripts automate the deployment of personal infrastructure components. The - **Multi-OS**: Supports Debian and Alpine-based deployments - **Loopback by default**: Services bind to `127.0.0.1`; Tailscale handles the reverse proxy and TLS termination - **Log hygiene**: Every long-running service ships with a `logrotate` config (no unbounded log files) +- **Console auto-login**: Proxmox LXCs are configured for root auto-login on `tty1` (fast `pct enter` and Web UI shell access) - **Keep it simple**: One script per service, plain bash, no frameworks — readability over cleverness ### Available Scripts diff --git a/openbao/install.sh b/openbao/install.sh index 069c749..883129d 100755 --- a/openbao/install.sh +++ b/openbao/install.sh @@ -465,6 +465,13 @@ EOF log_info "Starting openbao service..." rc-service openbao start || log_warn "openbao failed to start — inspect /var/log/openbao.log" + log_info "Enabling console auto-login on tty1..." + mkdir -p /etc/conf.d + cat > /etc/conf.d/agetty <<'EOF' +agetty_options="--autologin root --noclear" +EOF + sed -i 's|^tty1::respawn:/sbin/getty.*|tty1::respawn:/sbin/agetty --autologin root --noclear 38400 tty1|' /etc/inittab + configure_tailscale_proxy log_info "Cleaning up..."