units: set HOME=/root when running shells

This commit is contained in:
Lennart Poettering 2010-09-10 16:53:53 +02:00
parent f27dcdcaa0
commit 739848d4f3
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ Description=Emergency Shell
DefaultDependencies=no
[Service]
Environment=HOME=/root
ExecStartPre=-/bin/plymouth --hide-splash
ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" to activate default mode.'
ExecStart=-/sbin/sulogin

View File

@ -15,6 +15,7 @@ After=sysinit.target
Before=multi-user.target
[Service]
Environment=HOME=/root
ExecStartPre=-/bin/plymouth --hide-splash
ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" to activate default mode.'
ExecStart=-/sbin/sulogin