[systemd-devel] [PATCH 2/8] Assorted tweaks to Fedora single-user mode.

Lennart Poettering lennart at poettering.net
Thu Oct 28 16:33:32 PDT 2010


On Thu, 28.10.10 13:27, Bill Nottingham (notting at redhat.com) wrote:

> 1) Start after basic.target, not the deprecated sysinit.target
> 2) Conflict with shutdown.
> 3) Be less noisy on start, to match prior behavior.

Merged this, but removed part #3. I kinda like the message, and I
planning to make this file fedora-independant and call it
rescue.service, in which case I think it is wise if it matches
emergency.service, and gives a helpful mode.

The Fedora specific part (sysconfig...) I'll ifdef out with m4 when I
rename this.

> 
> Signed-off-by: Bill Nottingham <notting at redhat.com>
> ---
>  units/fedora/single.service |    5 ++---
>  1 files changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/units/fedora/single.service b/units/fedora/single.service
> index f494237..1ab2d0a 100644
> --- a/units/fedora/single.service
> +++ b/units/fedora/single.service
> @@ -10,8 +10,8 @@
>  [Unit]
>  Description=Rescue Shell
>  DefaultDependencies=no
> -Conflicts=multi-user.target
> -After=sysinit.target
> +Conflicts=multi-user.target shutdown.target
> +After=basic.target
>  Before=multi-user.target
>  
>  [Service]
> @@ -20,7 +20,6 @@ Environment=TERM=vt100-nav
>  EnvironmentFile=/etc/sysconfig/init
>  WorkingDirectory=/root
>  ExecStartPre=-/bin/plymouth --hide-splash
> -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


Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list