summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2014-12-19 09:03:08 -0500
committerRay Strode <rstrode@redhat.com>2014-12-19 09:04:57 -0500
commit68259e09488281efb7905934e12286e4a1320856 (patch)
treeef808eb6a602ecba09e3bdfd9656f9cf593fb819 /data
parent0950c62478a338189f3e50d3dd6e19c2b9d4de3b (diff)
downloadgdm-68259e09488281efb7905934e12286e4a1320856.tar.gz
systemd: strip plymouth bits from unit file if built --without-plymouth
Otherwise, if you have plymouth, but build --without-plymouth then boot will screw up https://bugzilla.gnome.org/show_bug.cgi?id=740802
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am2
-rw-r--r--data/gdm.service.in4
2 files changed, 4 insertions, 2 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 1b79bc3b..b2a18e70 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -197,6 +197,8 @@ gdm.service: $(srcdir)/gdm.service.in
$(AM_V_GEN)sed \
-e 's,[@]sbindir[@],$(sbindir),g' \
-e 's,[@]GDM_INITIAL_VT[@],$(GDM_INITIAL_VT),g' \
+ -e 's,[@]PLYMOUTH_QUIT_SERVICE[@],$(PLYMOUTH_QUIT_SERVICE),g' \
+ -e 's, *$$,,g' \
< $< > $@
systemdsystemunit += gdm.service
CLEANFILES += gdm.service
diff --git a/data/gdm.service.in b/data/gdm.service.in
index df8bc090..f7876e9c 100644
--- a/data/gdm.service.in
+++ b/data/gdm.service.in
@@ -1,7 +1,7 @@
[Unit]
Description=GNOME Display Manager
-Conflicts=getty@tty@GDM_INITIAL_VT@.service plymouth-quit.service
-After=systemd-user-sessions.service getty@tty@GDM_INITIAL_VT@.service plymouth-quit.service
+Conflicts=getty@tty@GDM_INITIAL_VT@.service @PLYMOUTH_QUIT_SERVICE@
+After=systemd-user-sessions.service getty@tty@GDM_INITIAL_VT@.service @PLYMOUTH_QUIT_SERVICE@
[Service]
ExecStart=@sbindir@/gdm