units: set HOME=/root when running shells
This commit is contained in:
parent
f27dcdcaa0
commit
739848d4f3
|
@ -12,6 +12,7 @@ Description=Emergency Shell
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Environment=HOME=/root
|
||||||
ExecStartPre=-/bin/plymouth --hide-splash
|
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" to activate default mode.'
|
||||||
ExecStart=-/sbin/sulogin
|
ExecStart=-/sbin/sulogin
|
||||||
|
|
|
@ -15,6 +15,7 @@ After=sysinit.target
|
||||||
Before=multi-user.target
|
Before=multi-user.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Environment=HOME=/root
|
||||||
ExecStartPre=-/bin/plymouth --hide-splash
|
ExecStartPre=-/bin/plymouth --hide-splash
|
||||||
ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" to activate default mode.'
|
ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" to activate default mode.'
|
||||||
ExecStart=-/sbin/sulogin
|
ExecStart=-/sbin/sulogin
|
||||||
|
|
Loading…
Reference in New Issue