units: emergency.service: wait for plymouth to shut down
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 9 Jul 2015 14:25:00 +0000 (16:25 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Fri, 10 Jul 2015 03:43:52 +0000 (05:43 +0200)
Merely calling "plymouth quit" isn't sufficient, as plymouth needs some time to
shut down. This needs plymouth --wait (which is a no-op when it's not running).

Fixes invisible emergency shell with plymouth running endlessly.

https://launchpad.net/bugs/1471258

units/emergency.service.in

index 52b9b1c..8dc3cbd 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 emergency mode! After logging in, type "journalctl -xb" to view\\nsystem logs, "systemctl reboot" to reboot, "systemctl default" or ^D to\\ntry again to boot into default mode.'
 ExecStart=-/bin/sh -c "@SULOGIN@; @SYSTEMCTL@ --job-mode=fail --no-block default"
 Type=idle