From abb15a6ec8e00c647bbfbc10533e791884b95c1f Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 30 Jan 2026 10:21:55 +0100 Subject: [PATCH] devuan fixes --- misc/install.func | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/misc/install.func b/misc/install.func index 1841526a8..9aa13be45 100644 --- a/misc/install.func +++ b/misc/install.func @@ -902,7 +902,7 @@ EOF sysvinit) # Devuan/older systems - modify inittab for auto-login # Devuan 5 (daedalus) uses SysVinit with various inittab formats - # CRITICAL: LXC uses /dev/console, NOT tty1! pct console connects to console device + # LXC can use /dev/console OR /dev/tty1 depending on how pct console connects if [[ -f /etc/inittab ]]; then # Backup original inittab cp /etc/inittab /etc/inittab.bak 2>/dev/null || true @@ -921,10 +921,12 @@ EOF echo "# LXC console autologin (added by community-scripts)" >>/etc/inittab echo "co:2345:respawn:/sbin/agetty --autologin root --noclear console 115200 linux" >>/etc/inittab - # Force a reload of inittab and respawn console getty - # Kill existing getty on console to force respawn with new settings - pkill -9 -f 'getty.*console' &>/dev/null || true - pkill -9 -f 'agetty.*console' &>/dev/null || true + # Force a reload of inittab and respawn ALL getty processes + # Kill ALL getty processes to force respawn with new autologin settings + pkill -9 -f '[ag]etty' &>/dev/null || true + + # Small delay to let init notice the dead processes + sleep 1 # Reload inittab - try multiple methods telinit q &>/dev/null || init q &>/dev/null || kill -HUP 1 &>/dev/null || true