forked from pool/systemd
32 lines
1.5 KiB
Diff
32 lines
1.5 KiB
Diff
|
From: Andrey Borzenkov <arvidjaar@gmail.com>
|
||
|
Subject: use /usr/sbin/sulogin in emergency service
|
||
|
|
||
|
In current Factory sulogin is in /usr/sbin which makes it impossible
|
||
|
to enter emergency service.
|
||
|
Index: systemd-205/units/emergency.service
|
||
|
===================================================================
|
||
|
--- systemd-205.orig/units/emergency.service
|
||
|
+++ systemd-205/units/emergency.service
|
||
|
@@ -17,7 +17,7 @@ Environment=HOME=/root
|
||
|
WorkingDirectory=/root
|
||
|
ExecStartPre=-/bin/plymouth 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" to try again\\nto boot into default mode.'
|
||
|
-ExecStart=-/sbin/sulogin
|
||
|
+ExecStart=-/usr/sbin/sulogin
|
||
|
ExecStopPost=/usr/bin/systemctl --fail --no-block default
|
||
|
Type=idle
|
||
|
StandardInput=tty-force
|
||
|
Index: systemd-205/units/emergency.service.in
|
||
|
===================================================================
|
||
|
--- systemd-205.orig/units/emergency.service.in
|
||
|
+++ systemd-205/units/emergency.service.in
|
||
|
@@ -17,7 +17,7 @@ Environment=HOME=/root
|
||
|
WorkingDirectory=/root
|
||
|
ExecStartPre=-/bin/plymouth 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" to try again\\nto boot into default mode.'
|
||
|
-ExecStart=-/sbin/sulogin
|
||
|
+ExecStart=-/usr/sbin/sulogin
|
||
|
ExecStopPost=@SYSTEMCTL@ --fail --no-block default
|
||
|
Type=idle
|
||
|
StandardInput=tty-force
|