units: set working directory to /root for sulogin, since sulogin is crazy

This commit is contained in:
Lennart Poettering 2010-09-10 17:11:29 +02:00
parent b00bad3641
commit 1fd116f748
2 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ DefaultDependencies=no
[Service]
Environment=HOME=/root
WorkingDirectory=/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

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