mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-27 13:57:26 +03:00
unit: continue boot when exiting emergency/resuce shell
This commit is contained in:
parent
71fad67514
commit
273f54cdc2
2
fixme
2
fixme
@ -1,7 +1,5 @@
|
||||
v11:
|
||||
|
||||
* emergency.service should start default.target after C-d. synchronize from fedora's initscripts package
|
||||
|
||||
* verify ordering of random-seed-load and base.target!
|
||||
|
||||
later:
|
||||
|
@ -15,11 +15,10 @@ DefaultDependencies=no
|
||||
Environment=HOME=/root
|
||||
WorkingDirectory=/root
|
||||
ExecStartPre=-/bin/plymouth --hide-splash
|
||||
ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" to activate default mode.'
|
||||
ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" or ^D to activate default mode.'
|
||||
ExecStart=-/sbin/sulogin
|
||||
ExecStopPost=/bin/systemctl default
|
||||
StandardInput=tty-force
|
||||
Restart=always
|
||||
RestartSec=0
|
||||
KillMode=process-group
|
||||
|
||||
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
|
||||
|
@ -16,13 +16,13 @@ Before=multi-user.target
|
||||
|
||||
[Service]
|
||||
Environment=HOME=/root
|
||||
EnvironmentFile=/etc/sysconfig/init
|
||||
WorkingDirectory=/root
|
||||
ExecStartPre=-/bin/plymouth --hide-splash
|
||||
ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" to activate default mode.'
|
||||
ExecStart=-/sbin/sulogin
|
||||
ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" or ^D to activate default mode.'
|
||||
ExecStart=-/bin/bash -c "exec $SINGLE"
|
||||
ExecStopPost=/bin/systemctl default
|
||||
StandardInput=tty-force
|
||||
Restart=always
|
||||
RestartSec=0
|
||||
KillMode=process-group
|
||||
|
||||
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
|
||||
|
Loading…
x
Reference in New Issue
Block a user