base/dracut-lib.sh: make use of DRACUT_SYSTEMD

This commit is contained in:
Harald Hoyer 2012-08-01 14:36:38 +02:00
parent 126732bcc1
commit 7dd7ff0f33

View File

@ -867,7 +867,7 @@ wait_for_loginit()
_emergency_shell()
{
local _name="$1"
if [ -x /lib/systemd/systemd ]; then
if [ -n "$DRACUT_SYSTEMD" ]; then
> /.console_lock
echo "PS1=\"$_name:\${PWD}# \"" >/etc/profile
systemctl start emergency.service