dcavalca / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone
Zbigniew Jędrzejewski-Szmek 62fe94
From 42377d6bb771c31bff931f83163972fdcb224d0c Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek 62fe94
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Zbigniew Jędrzejewski-Szmek 62fe94
Date: Sat, 30 Aug 2014 22:34:56 -0400
Zbigniew Jędrzejewski-Szmek 62fe94
Subject: [PATCH] units: update rescue.service and emergency.service
Zbigniew Jędrzejewski-Szmek 62fe94
Zbigniew Jędrzejewski-Szmek 62fe94
^D works in emergency.service too. One needs to log in when in rescue
Zbigniew Jędrzejewski-Szmek 62fe94
mode too.
Zbigniew Jędrzejewski-Szmek 62fe94
---
Zbigniew Jędrzejewski-Szmek 62fe94
 units/emergency.service.in | 2 +-
Zbigniew Jędrzejewski-Szmek 62fe94
 units/rescue.service.in    | 2 +-
Zbigniew Jędrzejewski-Szmek 62fe94
 2 files changed, 2 insertions(+), 2 deletions(-)
Zbigniew Jędrzejewski-Szmek 62fe94
Zbigniew Jędrzejewski-Szmek 62fe94
diff --git a/units/emergency.service.in b/units/emergency.service.in
Zbigniew Jędrzejewski-Szmek 62fe94
index 224a434f72..18973e78fa 100644
Zbigniew Jędrzejewski-Szmek 62fe94
--- a/units/emergency.service.in
Zbigniew Jędrzejewski-Szmek 62fe94
+++ b/units/emergency.service.in
Zbigniew Jędrzejewski-Szmek 62fe94
@@ -17,7 +17,7 @@ Before=shutdown.target
Zbigniew Jędrzejewski-Szmek 62fe94
 Environment=HOME=/root
Zbigniew Jędrzejewski-Szmek 62fe94
 WorkingDirectory=/root
Zbigniew Jędrzejewski-Szmek 62fe94
 ExecStartPre=-/bin/plymouth quit
Zbigniew Jędrzejewski-Szmek 62fe94
-ExecStartPre=-/bin/echo -e 'Welcome to emergency mode! After logging in, type "journalctl -xb" to view\\nsystem logs, "systemctl reboot" to reboot, "systemctl default" to try again\\nto boot into default mode.'
Zbigniew Jędrzejewski-Szmek 62fe94
+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.'
Zbigniew Jędrzejewski-Szmek 62fe94
 ExecStart=-/bin/sh -c "/sbin/sulogin; @SYSTEMCTL@ --fail --no-block default"
Zbigniew Jędrzejewski-Szmek 62fe94
 Type=idle
Zbigniew Jędrzejewski-Szmek 62fe94
 StandardInput=tty-force
Zbigniew Jędrzejewski-Szmek 62fe94
diff --git a/units/rescue.service.in b/units/rescue.service.in
Zbigniew Jędrzejewski-Szmek 62fe94
index ef5436960f..fc93f1e160 100644
Zbigniew Jędrzejewski-Szmek 62fe94
--- a/units/rescue.service.in
Zbigniew Jędrzejewski-Szmek 62fe94
+++ b/units/rescue.service.in
Zbigniew Jędrzejewski-Szmek 62fe94
@@ -17,7 +17,7 @@ Before=shutdown.target
Zbigniew Jędrzejewski-Szmek 62fe94
 Environment=HOME=/root
Zbigniew Jędrzejewski-Szmek 62fe94
 WorkingDirectory=/root
Zbigniew Jędrzejewski-Szmek 62fe94
 ExecStartPre=-/bin/plymouth quit
Zbigniew Jędrzejewski-Szmek 62fe94
-ExecStartPre=-/bin/echo -e 'Welcome to rescue mode! Type "systemctl default" or ^D to enter default mode.\\nType "journalctl -xb" to view system logs. Type "systemctl reboot" to reboot.'
Zbigniew Jędrzejewski-Szmek 62fe94
+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\\nboot into default mode.'
Zbigniew Jędrzejewski-Szmek 62fe94
 ExecStart=-/bin/sh -c "/sbin/sulogin; @SYSTEMCTL@ --fail --no-block default"
Zbigniew Jędrzejewski-Szmek 62fe94
 Type=idle
Zbigniew Jędrzejewski-Szmek 62fe94
 StandardInput=tty-force