From 7dd7ff0f33b43a10307b32e491cb98320939e0c0 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 1 Aug 2012 14:36:38 +0200 Subject: [PATCH] base/dracut-lib.sh: make use of DRACUT_SYSTEMD --- modules.d/99base/dracut-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index a4a36e4..381b4dd 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -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 -- 2.7.4