[systemd-devel] emergency, rescue and single-user

Mantas Mikulėnas grawity at gmail.com
Tue Dec 9 04:55:15 PST 2014


On Tue, Dec 9, 2014 at 2:43 PM, Jan Synáček <jsynacek at redhat.com> wrote:

> Hello,
>
> what is the difference between emergency, rescue and single-user?
> On F21, systemd-216-12.fc21.x86_64, they all boot into something that
> presents itself as "Welcome to emergency mode!" and they all require a
> root password. In case of booting into emergency.target, I can see
> "Starting Emergency Shell" in the console output. In single-user and
> rescue.target, I can see "Starting Rescue Shell", but they all look the
> same. systemd.special(7) doesn't help much.
>

rescue.target pulls in sysinit.target (mounts, swaps, udev, sysctl...),
while emergency.target starts a sulogin shell and nothing more. See the
graph in bootup(7).

The sysv "single-user mode" maps directly to rescue.target.

-- 
Mantas Mikulėnas <grawity at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20141209/56a21db5/attachment.html>


More information about the systemd-devel mailing list