From fe56fda2f306c89e5f742f069893f8632b5d71a3 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Tue, 18 Mar 2014 20:14:16 +0400 Subject: [PATCH] x11-autologin: added a few notes Looks like nodm doesn't reset the PATH set within /etc/rc.d/init.d/functions which results in sbin path components hitting user's PATH; livecd-install which uses consolehelper was what broke first for me. And this link should illustrate some of the problems tackled by this kind of scripts... --- .../x11-autologin/rootfs/image-scripts.d/40-x11-autologin | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features.in/x11-autologin/rootfs/image-scripts.d/40-x11-autologin b/features.in/x11-autologin/rootfs/image-scripts.d/40-x11-autologin index e30471e2..e03859f7 100755 --- a/features.in/x11-autologin/rootfs/image-scripts.d/40-x11-autologin +++ b/features.in/x11-autologin/rootfs/image-scripts.d/40-x11-autologin @@ -1,4 +1,5 @@ #!/bin/sh +# see also http://www.enricozini.org/2008/tips/lightweight-autologin/ if [ ! -x /usr/bin/X ]; then echo "SKIP autologin: X not installed" >&2 @@ -105,6 +106,7 @@ if [ -f "$KDMRC" ]; then autologin_kdm "$KDMRC"; fi ## nodm autologin (the last since the most intrusive) # FIXME nodm and xinitrc should be modified (also in p6) +# WARNING: check user PATH if things go weird! NODM_RC=/etc/sysconfig/nodm NODM_EXE=/usr/sbin/nodm if [ -x "$NODM_EXE" ]; then