From f36657708a64cb5404b62083bfc0bfbada2479ef Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 7 May 2025 09:33:34 +0200 Subject: [PATCH] Update alpine-install.func --- misc/alpine-install.func | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/misc/alpine-install.func b/misc/alpine-install.func index df6d80c..c887160 100644 --- a/misc/alpine-install.func +++ b/misc/alpine-install.func @@ -212,10 +212,13 @@ customize() { msg_info "Customizing Container" passwd -d root >/dev/null 2>&1 + # Ensure agetty is available + apk add --no-cache util-linux-getty >/dev/null 2>&1 + # Enable autologin on tty1 - sed -i 's|^tty1::respawn:.*|tty1::respawn:/sbin/getty -a root -n -l /bin/sh 38400 tty1|' /etc/inittab + sed -i 's|^tty1::respawn:.*|tty1::respawn:/sbin/agetty --autologin root --noclear tty1 38400 linux|' /etc/inittab touch /run/openrc/softlevel - rc-service agetty restart 2>/dev/null || kill -HUP 1 + kill -HUP 1 msg_ok "Customized Container" fi