Fedora Linux Support Community & Resources Center
  #1  
Old 15th October 2011, 05:18 AM
chrismurphy Offline
Registered User
 
Join Date: May 2010
Posts: 970
macossafari
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?
Reply With Quote
  #2  
Old 15th October 2011, 04:10 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,334
linuxfirefox
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:

Quote:
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
Reply With Quote
Reply

Tags
emergency, rescue, systemd, targets

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
System targets older web users adrianx Linux Chat 2 11th November 2009 08:37 PM
emergency help with firefox erfan Using Fedora 3 13th September 2008 03:11 PM
LVM Emergency gundark Using Fedora 8 24th July 2006 10:59 AM
Emergency Help Please fc4sun Installation, Upgrades and Live Media 6 14th August 2005 05:22 PM
rescue a broken LVM with a FC rescue disk morci Using Fedora 5 26th July 2005 01:05 AM


Current GMT-time: 08:15 (Monday, 24-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Agua Preta Travel Photos on Instagram - Idar-Oberstein Travel Photos on Instagram - Bodh Gaya Photos on Instagram