emergency vs rescue systemd targets
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2010
    Posts
    1,058
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question emergency vs rescue systemd targets

    In systemd-devel I found some discussion on trying to clarify the difference between them but I'm confused.

    Passing the "single" kernel parameter at boot drops me into the rescue.target mode, which makes active a number of targets: basic system, bluetooth, sound, encrypted volumes, local filesystems, sockets and swap. In particular with local filesystems, it seems like I should boot to the emergency.target before running fsck. So I'm not really understanding why single translates into rescue.target. Comments?

  2. #2
    Join Date
    Aug 2009
    Posts
    8,830
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)

    Re: emergency vs rescue systemd targets

    The emergency.target has no corresponding sysvinit runlevel, and would just boot your machine to a shell with really nothing started.

    rescue.target is like the old single user or runlevel 1 from sysvinit. It

    Here is a short explanation from the developer:

    In systemd, "emergency" is little more than an equivalent to
    init=/bin/sh on the kernel command like. i.e. you get a shell, but
    almost nothing else (except for systemd in the background which you can
    then ask to do more). No services are started, no mount points mounted,
    no sockets established, nothing. Just a raw, delicious shell and
    systemd's promise to be around if you need more. In contrast to that
    "rescue" is equivalent to the old runlevel 1 (or S), i.e. sysinit is
    run, everything is mounted, but no normal services are started yet.

    I think emergency mode is kinda nice for debugging purposes, since it
    allows you to boot bit-by-bit, simply by starting in the emergency mode
    and then starting the various services and other units that are part of
    the early boot step-by-step. This will become particularly useful when
    Fedora splits up sysinit into various smaller scripts which could then
    be started seperately and independently.

    Consider it a part of our boot-up debugging tools.

    Lennart

Similar Threads

  1. System targets older web users
    By adrianx in forum Linux Chat
    Replies: 2
    Last Post: 11th November 2009, 08:37 PM
  2. emergency help with firefox
    By erfan in forum Using Fedora
    Replies: 3
    Last Post: 13th September 2008, 02:11 PM
  3. LVM Emergency
    By gundark in forum Using Fedora
    Replies: 8
    Last Post: 24th July 2006, 09:59 AM
  4. Emergency Help Please
    By fc4sun in forum Installation, Upgrades and Live Media
    Replies: 6
    Last Post: 14th August 2005, 04:22 PM
  5. rescue a broken LVM with a FC rescue disk
    By morci in forum Using Fedora
    Replies: 5
    Last Post: 26th July 2005, 12:05 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •