Bug 7408

Summary: [systemd] rescue.service and emergency.service have wrong path to sulogin
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jonathan Liu <net147>
Component: coreAssignee: Jonathan Liu <net147>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, randy.e.witt
Version: 1.8   
Target Milestone: 1.8 M4   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Jonathan Liu 2015-03-06 00:42:41 UTC
The rescue and emergency modes in systemd are not working correctly.

For example, if systemd boots into emergency mode:
"""
Welcome to emergency mode! After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to
try again to boot into default mode.
/bin/sh: /usr/bin/sulogin: not found
"""

In /lib/systemd/system/rescue.service and /lib/systemd/system/emergency.service, the following line has the wrong path to sulogin:
ExecStart=-/bin/sh -c "/usr/bin/sulogin; /bin/systemctl --fail --no-block default"

The path to sulogin is actually /sbin/sulogin.
Comment 1 Jonathan Liu 2015-03-06 00:45:16 UTC
The services have the right path to sulogin when using the daisy release.