next lightdm fix attempt

This commit is contained in:
udeved 2014-12-16 01:27:19 +01:00
parent 79ea9b59ed
commit c93687d8c4
2 changed files with 9 additions and 6 deletions

View file

@ -436,9 +436,10 @@ configure_user(){
# $1: chroot
configure_user_root(){
# set up root password
local pass=$(gen_pw)
msg2 "Setting root password ${password} ..."
chroot-run $1 echo "root:${pass}" | chpasswd
local _cmd=echo "$(gen_pw):root"
msg2 "Command string: $_cmd"
chroot-run $1 $_cmd | chpasswd
}
# $1: chroot
@ -526,7 +527,7 @@ configure_displaymanager(){
sed -i -e 's/^.*user-session=.*/user-session=pekwm/' $1/etc/lightdm/lightdm.conf
fi
chroot-run $1 groupadd autologin
if [[ $1 != "${work_dir}/${desktop}-image" ]]; then
@ -537,6 +538,7 @@ configure_displaymanager(){
#sed -i -e 's/^.*autologin-in-background=.*/autologin-in-background=true/' /etc/lightdm/lightdm.conf
chroot-run $1 gpasswd -a ${username} autologin &> /dev/null
chroot-run $1 groupadd autologin
# livecd fix
#mkdir -p $1/var/lib/lightdm-data

View file

@ -48,9 +48,10 @@ alsactl -f /etc/asound.state store &>/dev/null
#if [ ! -z "$ping_check" ] ; then
# pacman-mirrors -g &>/dev/null
#fi
if [ -e "$1/usr/bin/lightdm" ] ; then
fix_lightdm
fi
# if [ -e "$1/usr/bin/lightdm" ] ; then
# fix_lightdm
# fi
echo "configure system" >> /tmp/livecd.log