[arch-releng] [PATCH 1/2] [configs/releng] Fix autologin

Thomas Bächler thomas at archlinux.org
Sat Jul 14 10:01:28 EDT 2012


The old autologin method doesn't work anymore with recent login from util-linux.
Utilize agetty -a instead.
---
 configs/releng/root-image/etc/inittab       | 2 +-
 configs/releng/root-image/usr/bin/autologin | 2 --
 2 Dateien geändert, 1 Zeile hinzugefügt(+), 3 Zeilen entfernt(-)
 delete mode 100755 configs/releng/root-image/usr/bin/autologin

diff --git a/configs/releng/root-image/etc/inittab b/configs/releng/root-image/etc/inittab
index 2bbc494..e3fe2c8 100644
--- a/configs/releng/root-image/etc/inittab
+++ b/configs/releng/root-image/etc/inittab
@@ -24,7 +24,7 @@ rh:06:wait:/etc/rc.shutdown
 su:S:wait:/sbin/sulogin -p
 
 # -8 options fixes umlauts problem on login
-c1:2345:respawn:/sbin/agetty -8 -s -n -l /usr/bin/autologin 38400 tty1 linux
+c1:2345:respawn:/sbin/agetty -8 -s -a root 38400 tty1 linux
 c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
 c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
 c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
diff --git a/configs/releng/root-image/usr/bin/autologin b/configs/releng/root-image/usr/bin/autologin
deleted file mode 100755
index c124f9e..0000000
--- a/configs/releng/root-image/usr/bin/autologin
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-/bin/login -f root
-- 
1.7.11.2



More information about the arch-releng mailing list