From 42eacdadf56dfeb32c8cb0f598a47a43e6190483 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 29 Oct 2010 02:42:10 +0200 Subject: units: introduce plymouth-start and plymouth-kexec, and move a few things back from basic to sysinit --- units/fedora/plymouth-halt.service | 2 +- units/fedora/plymouth-kexec.service | 19 +++++++++++++++++++ units/fedora/plymouth-poweroff.service | 2 +- units/fedora/plymouth-quit.service | 2 +- units/fedora/plymouth-reboot.service | 2 +- units/fedora/plymouth-start.service | 17 +++++++++++++++++ 6 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 units/fedora/plymouth-kexec.service create mode 100644 units/fedora/plymouth-start.service (limited to 'units') diff --git a/units/fedora/plymouth-halt.service b/units/fedora/plymouth-halt.service index 2a5a06721a..1a957f425a 100644 --- a/units/fedora/plymouth-halt.service +++ b/units/fedora/plymouth-halt.service @@ -7,7 +7,7 @@ [Unit] Description=Show Plymouth Halt Screen -After=getty@tty1.service prefdm.service +After=getty@tty1.service prefdm.service plymouth-start.service Before=halt.service DefaultDependencies=no diff --git a/units/fedora/plymouth-kexec.service b/units/fedora/plymouth-kexec.service new file mode 100644 index 0000000000..b73286c88b --- /dev/null +++ b/units/fedora/plymouth-kexec.service @@ -0,0 +1,19 @@ +# 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=Show Plymouth Reboot with kexec Screen +After=getty@tty1.service prefdm.service plymouth-start.service +Before=kexec.service +DefaultDependencies=no + +[Service] +ExecStart=/sbin/plymouthd --mode=shutdown +ExecStartPost=-/usr/bin/plymouth --sysinit +ExecStartPost=-/usr/bin/plymouth --show-splash +ExecStartPost=-/usr/bin/plymouth message '--text=Rebooting with kexec...' +Type=forking diff --git a/units/fedora/plymouth-poweroff.service b/units/fedora/plymouth-poweroff.service index c92b66378a..5ff174fe85 100644 --- a/units/fedora/plymouth-poweroff.service +++ b/units/fedora/plymouth-poweroff.service @@ -7,7 +7,7 @@ [Unit] Description=Show Plymouth Power Off Screen -After=getty@tty1.service prefdm.service +After=getty@tty1.service prefdm.service plymouth-start.service Before=poweroff.service DefaultDependencies=no diff --git a/units/fedora/plymouth-quit.service b/units/fedora/plymouth-quit.service index 89c146b2e1..f4d292cd03 100644 --- a/units/fedora/plymouth-quit.service +++ b/units/fedora/plymouth-quit.service @@ -8,7 +8,7 @@ [Unit] Description=Terminate Plymouth Boot Screen Before=getty@tty1.service -After=dev-tty1.device rc-local.service +After=dev-tty1.device rc-local.service plymouth-start.service [Service] ExecStart=-/usr/bin/plymouth quit diff --git a/units/fedora/plymouth-reboot.service b/units/fedora/plymouth-reboot.service index 6641b7f5e6..d09171adfe 100644 --- a/units/fedora/plymouth-reboot.service +++ b/units/fedora/plymouth-reboot.service @@ -7,7 +7,7 @@ [Unit] Description=Show Plymouth Reboot Screen -After=getty@tty1.service prefdm.service +After=getty@tty1.service prefdm.service plymouth-start.service Before=reboot.service DefaultDependencies=no diff --git a/units/fedora/plymouth-start.service b/units/fedora/plymouth-start.service new file mode 100644 index 0000000000..26b04c7f73 --- /dev/null +++ b/units/fedora/plymouth-start.service @@ -0,0 +1,17 @@ +# 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=Show Plymouth Boot Screen +DefaultDependencies=no +After=systemd-vconsole-setup.service +Before=systemd-ask-password-plymouth.service + +[Service] +ExecStart=/sbin/plymouthd --mode=boot --attach-to-session +ExecStartPost=-/usr/bin/plymouth --show-splash +Type=forking -- cgit v1.2.3-54-g00ecf