SHA256
1
0
forked from pool/systemd
systemd/use-usr-sbin-sulogin-for-emergency-service.patch
Dr. Werner Fink 2c9ad1c6b2 Accepting request 183009 from home:arvidjaar:branches:Base:System
emergency.service failed to start because sulogin is in /usr/sbin now.
Add use-usr-sbin-sulogin-for-emergency-service.patch to fix the path in unit file.

OBS-URL: https://build.opensuse.org/request/show/183009
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=415
2013-07-14 13:56:23 +00:00

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