Bug 82778 - emergency mode conflicts with rescue mode
Summary: emergency mode conflicts with rescue mode
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-18 17:39 UTC by Michael Biebl
Modified: 2017-10-19 08:26 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Michael Biebl 2014-08-18 17:39:20 UTC
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757072

If you have a problem in your configuration (like a broken fstab entry) which triggers emergency.service and you try to boot the "rescue" mode via the kernel command line, you get two conflicting rescue shells:

 Welcome to rescue mode! Type "systemctl default" or ^D to enter default mode.
  Welcome to emergency mode! After logging in, type "journalctl -xd" to view
  Type "journalctl -xb" to view system logs. Type "systemctl reboot" to reboot.
  system logs, "systemctl reboot" to reboot, "systemctl default" to try again
  to boot into default mode.
  Give root password for maintenance
  Give root password for maintenance
  (or type Control-D to continue): (or type Control-D o continue):

Both rescue and emergency mode seem to fight over stdin and one is constantly kicked out of the rescue shell.
Comment 1 Michael Biebl 2014-08-18 17:40:17 UTC
To reproduce the issue, add something like
/dev/nonexistent /mnt/foo auto auto 0 0 
to your fstab

Then choose the rescue mode in grub (which adds single to the kernel command line).
Comment 2 Michael Biebl 2014-08-18 18:49:00 UTC
I've reproduced that with v215 and v208.

Should we make emergency.service and rescue.service conflict with each other?
Comment 3 Zbigniew Jedrzejewski-Szmek 2014-08-31 04:07:10 UTC
(In reply to comment #2)
> Should we make emergency.service and rescue.service conflict with each other?
http://cgit.freedesktop.org/systemd/systemd/commit/?id=87502e5868 does that.
Comment 4 mathieu.lattes 2017-10-19 08:26:52 UTC
Hi,

FYI, I just raise the same bug today with debian Stretch.
systemd --version return :
systemd 232
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.