From 5d583126b4540ced251b58ed7c8b428063555d53 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 19 May 2011 16:13:51 +0200 Subject: [PATCH] Configure gdm for autologin --- platforms/livecd-gnome-root/post.inc.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platforms/livecd-gnome-root/post.inc.sh b/platforms/livecd-gnome-root/post.inc.sh index 11de8b5..0dd8e2c 100644 --- a/platforms/livecd-gnome-root/post.inc.sh +++ b/platforms/livecd-gnome-root/post.inc.sh @@ -18,7 +18,11 @@ sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab # configure GDM for autologin # -# sed -i 's|[#]*AutoLoginEnable=.*|AutoLoginEnable=true|' \ +cat > $MOUNTDIR/etc/gdm/gdm.conf << _EOF +[daemon] +AutomaticLoginEnable=true +AutomaticLogin=root +_EOF # FIXME: ensure alternatives are correclty set chroot $MOUNTDIR update-alternatives-set-dri