[util-iso-image] only use plymouth-service if file exists

This commit is contained in:
Philip 2015-02-28 13:34:18 +01:00
parent c7546f8b77
commit f1dacdf36f

View file

@ -270,10 +270,13 @@ configure_displaymanager(){
chroot $1 rc-update add xdm default &> /dev/null chroot $1 rc-update add xdm default &> /dev/null
else else
if [[ -f $1/etc/plymouth/plymouthd.conf ]] ; then if [[ -f $1/etc/plymouth/plymouthd.conf ]] ; then
chroot $1 systemctl enable ${displaymanager}-plymouth &> /dev/null if [[ -f $1/usr/lib/systemd/system/${displaymanager}-plymouth.service ]] ; then
else service=${displaymanager}-plymouth
chroot $1 systemctl enable ${displaymanager} &> /dev/null else
service=${displaymanager}
fi
fi fi
chroot $1 systemctl enable ${service} &> /dev/null
fi fi
msg2 "Configured: ${displaymanager}" msg2 "Configured: ${displaymanager}"
} }