[systemd-devel] Check for plymouth (e1b2b49465615727a2c3883d06d1b9ff339aec67)
Andrey Borzenkov
arvidjaar at gmail.com
Wed Feb 9 20:02:57 PST 2011
--- a/units/plymouth-start.service
+++ b/units/plymouth-start.service
@@ -12,7 +12,13 @@ Wants=systemd-ask-password-plymouth.path
After=systemd-vconsole-setup.service udev-settle.service
Before=systemd-ask-password-plymouth.service
+# Dracut informs us with this flag file if plymouth is already running
+ConditionPathExists=!/dev/.systemd/plymouth
+
[Service]
ExecStart=/sbin/plymouthd --mode=boot
ExecStartPost=-/bin/plymouth --show-splash
And what other poor folks who do not happen to use dracut should do?
I would really prefer to see generic ConditionCommandStatus and simply use
ConditionCommandStatus!=plymoth --ping
This works for any initrd (or without) and offers facility useful to
others as well. As opposed to above hack :)
More information about the systemd-devel
mailing list