Configure gdm for autologin

This commit is contained in:
Silvan Calarco 2011-05-19 16:13:51 +02:00
parent 82255484ee
commit 5d583126b4

View File

@ -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