chiark / gitweb /
units: add unit to call /bin/plymouth update-root-fs --read-write
authorLennart Poettering <lennart@poettering.net>
Sat, 30 Oct 2010 21:55:54 +0000 (23:55 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 30 Oct 2010 21:56:12 +0000 (23:56 +0200)
Makefile.am
units/fedora/plymouth-read-write.service [new file with mode: 0644]

index 989514d..03a6a4e 100644 (file)
@@ -301,6 +301,7 @@ dist_systemunit_DATA += \
        units/fedora/rc-local.service \
        units/fedora/halt-local.service \
        units/fedora/plymouth-start.service \
+       units/fedora/plymouth-read-write.service \
        units/fedora/plymouth-quit.service \
        units/fedora/plymouth-reboot.service \
        units/fedora/plymouth-kexec.service \
@@ -1183,13 +1184,14 @@ if TARGET_FEDORA
        ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
                rm -f halt-local.service && \
                $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
-       ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
-               rm -f plymouth-quit.service  && \
-               $(LN_S) ../plymouth-quit.service plymouth-quit.service )
        ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
-               rm -f plymouth-start.service systemd-ask-password-plymouth.path && \
+               rm -f plymouth-start.service systemd-ask-password-plymouth.path plymouth-read-write.service && \
                $(LN_S) ../plymouth-start.service plymouth-start.service && \
+               $(LN_S) ../plymouth-read-write.service plymouth-read-write.service && \
                $(LN_S) ../systemd-ask-password-plymouth.path systemd-ask-password-plymouth.path )
+       ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
+               rm -f plymouth-quit.service  && \
+               $(LN_S) ../plymouth-quit.service plymouth-quit.service )
        ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
                rm -f plymouth-reboot.service && \
                $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
diff --git a/units/fedora/plymouth-read-write.service b/units/fedora/plymouth-read-write.service
new file mode 100644 (file)
index 0000000..ff2f8e4
--- /dev/null
@@ -0,0 +1,16 @@
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU General Public License as published by
+#  the Free Software Foundation; either version 2 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Tell Plymouth To Write Out Runtime Data
+DefaultDependencies=no
+After=local-fs.target
+Before=basic.target
+
+[Service]
+ExecStart=-/bin/plymouth update-root-fs --read-write
+Type=oneshot