]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - units/rescue.service.in
Merge pull request #12653 from yuwata/test-network-improvements-2
[thirdparty/systemd.git] / units / rescue.service.in
index 92553f61ddf642b5b47f6a2915883105c7b6fd6a..2a8f034b94bbc8d656fefbaa91c99994a8520583 100644 (file)
@@ -1,3 +1,5 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
 #  This file is part of systemd.
 #
 #  systemd is free software; you can redistribute it and/or modify it
@@ -16,9 +18,8 @@ Before=shutdown.target
 [Service]
 Environment=HOME=/root
 WorkingDirectory=-/root
-ExecStartPre=-/bin/plymouth 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"
+ExecStartPre=-/bin/plymouth --wait quit
+ExecStart=-@rootlibexecdir@/systemd-sulogin-shell rescue
 Type=idle
 StandardInput=tty-force
 StandardOutput=inherit