712866
From 84dfea4d2a9660c7cecfafb6955d075306da2bcb Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Wed, 19 Feb 2014 11:49:34 +0100
712866
Subject: [PATCH] iscsi: for iBFT read the initiator-name from the correct file
712866
712866
/sys/firmware/ibft/initiator-name should be
712866
/sys/firmware/ibft/initiator/initiator-name
712866
712866
https://github.com/haraldh/dracut/issues/12
712866
---
712866
 modules.d/95iscsi/iscsiroot.sh | 2 +-
712866
 1 file changed, 1 insertion(+), 1 deletion(-)
712866
712866
diff --git a/modules.d/95iscsi/iscsiroot.sh b/modules.d/95iscsi/iscsiroot.sh
5c6c2a
index 8b743323..54f49903 100755
712866
--- a/modules.d/95iscsi/iscsiroot.sh
712866
+++ b/modules.d/95iscsi/iscsiroot.sh
712866
@@ -125,7 +125,7 @@ handle_netroot()
712866
 
712866
     if [ -z $iscsi_initiator ]; then
712866
        if [ -f /sys/firmware/ibft/initiator/initiator-name ]; then
712866
-           iscsi_initiator=$(while read line; do echo $line;done < /sys/firmware/ibft/initiator-name)
712866
+           iscsi_initiator=$(while read line; do echo $line;done < /sys/firmware/ibft/initiator/initiator-name)
712866
        fi
712866
     fi
712866