]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: wait for plymouth to shut down in rescue.sevice (#3367)
authorFranck Bui <fbui@suse.com>
Wed, 1 Jun 2016 09:52:35 +0000 (11:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 1 Jun 2016 09:52:35 +0000 (11:52 +0200)
In the same vein as commit ac59f0c12c117b9bb5b7e17f33987b0107791239 which added
the --wait option to the emergency service, this patch makes sure that plymouth
has exited before entering into the rescue mode.

units/rescue.service.in

index 92553f61ddf642b5b47f6a2915883105c7b6fd6a..ecf96bc2110ff243db681d1ac2dc6835310236f1 100644 (file)
@@ -16,7 +16,7 @@ Before=shutdown.target
 [Service]
 Environment=HOME=/root
 WorkingDirectory=-/root
-ExecStartPre=-/bin/plymouth quit
+ExecStartPre=-/bin/plymouth --wait quit
 ExecStartPre=-/bin/echo -e 'Welcome to rescue mode! After logging in, type "journalctl -xb" to view\\nsystem logs, "systemctl reboot" to reboot, "systemctl default" or ^D to\\nboot into default mode.'
 ExecStart=-/bin/sh -c "@SULOGIN@; @SYSTEMCTL@ --job-mode=fail --no-block default"
 Type=idle