From f1dacdf36fff1883f34cb7e64e6227bf234186ba Mon Sep 17 00:00:00 2001 From: Philip Date: Sat, 28 Feb 2015 13:34:18 +0100 Subject: [PATCH] [util-iso-image] only use plymouth-service if file exists --- lib/util-iso-image.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/util-iso-image.sh b/lib/util-iso-image.sh index 3708644..fccaf26 100644 --- a/lib/util-iso-image.sh +++ b/lib/util-iso-image.sh @@ -270,10 +270,13 @@ configure_displaymanager(){ chroot $1 rc-update add xdm default &> /dev/null else if [[ -f $1/etc/plymouth/plymouthd.conf ]] ; then - chroot $1 systemctl enable ${displaymanager}-plymouth &> /dev/null - else - chroot $1 systemctl enable ${displaymanager} &> /dev/null + if [[ -f $1/usr/lib/systemd/system/${displaymanager}-plymouth.service ]] ; then + service=${displaymanager}-plymouth + else + service=${displaymanager} + fi fi + chroot $1 systemctl enable ${service} &> /dev/null fi msg2 "Configured: ${displaymanager}" }