From 30c9bf18aea3946212117d61f973fea314c63ee0 Mon Sep 17 00:00:00 2001 From: udeved Date: Wed, 21 Jan 2015 19:11:29 +0100 Subject: [PATCH] [util-iso] add autologin group for lightdm on DE image; cleanup --- lib/util-iso.sh | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/lib/util-iso.sh b/lib/util-iso.sh index 6f12653..a8de202 100644 --- a/lib/util-iso.sh +++ b/lib/util-iso.sh @@ -9,21 +9,6 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# $1: chroot -# configure_machine_id(){ -# # set unique machine-id -# msg2 "Setting machine-id ..." -# if [[ -z "$(echo $1 | grep root-image)" ]];then -# chroot $1 dbus-uuidgen --ensure=/etc/machine-id -# chroot $1 dbus-uuidgen --ensure=/var/lib/dbus/machine-id -# else -# mkdir -p $1/etc -# mkdir -p $1/var/lib/dbus -# dbus-uuidgen --ensure=$1/etc/machine-id -# dbus-uuidgen --ensure=$1/var/lib/dbus/machine-id -# fi -# } - gen_pw(){ echo $(perl -e 'print crypt($ARGV[0], "password")' ${password}) } @@ -135,6 +120,7 @@ configure_displaymanager(){ case ${displaymanager} in 'lightdm') + groupadd -r autologin if [ -e "$1/usr/bin/openbox-session" ] ; then sed -i -e 's/^.*user-session=.*/user-session=openbox/' $1/etc/lightdm/lightdm.conf fi