]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
iscsi: for iBFT read the initiator-name from the correct file
authorHarald Hoyer <harald@redhat.com>
Wed, 19 Feb 2014 10:49:34 +0000 (11:49 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 19 Feb 2014 10:49:34 +0000 (11:49 +0100)
/sys/firmware/ibft/initiator-name should be
/sys/firmware/ibft/initiator/initiator-name

https://github.com/haraldh/dracut/issues/12

modules.d/95iscsi/iscsiroot.sh

index 2eeeab6a4306e9a1a65502859b436dfc34e91428..1de6fb754b91d9b63ae391978848d7a1901c846a 100755 (executable)
@@ -125,7 +125,7 @@ handle_netroot()
 
     if [ -z $iscsi_initiator ]; then
        if [ -f /sys/firmware/ibft/initiator/initiator-name ]; then
-           iscsi_initiator=$(while read line; do echo $line;done < /sys/firmware/ibft/initiator-name)
+           iscsi_initiator=$(while read line; do echo $line;done < /sys/firmware/ibft/initiator/initiator-name)
        fi
     fi