Blame SOURCES/0126-iscsi-for-iBFT-read-the-initiator-name-from-the-corr.patch

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