base/dracut-lib.sh: make use of DRACUT_SYSTEMD
authorHarald Hoyer <harald@redhat.com>
Wed, 1 Aug 2012 12:36:38 +0000 (14:36 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 1 Aug 2012 12:36:38 +0000 (14:36 +0200)
modules.d/99base/dracut-lib.sh

index a4a36e4..381b4dd 100755 (executable)
@@ -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