[gnome-hwtest] Manually load the appropriate ethernet driver module



commit 4674813e32d362dafc7b6cfa60fb50204f56712c
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Thu Jun 26 16:09:18 2014 -0400

    Manually load the appropriate ethernet driver module
    
    With kernel-3.14, it seems necesssary to load the ethernet driver
    manually before running iscsistart - with 3.10, udev or the kernel
    was doing it automatically.

 dracut/gnome-hwtest-iscsi-boot.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/dracut/gnome-hwtest-iscsi-boot.sh b/dracut/gnome-hwtest-iscsi-boot.sh
index 0bbf64b..1a1c6ac 100644
--- a/dracut/gnome-hwtest-iscsi-boot.sh
+++ b/dracut/gnome-hwtest-iscsi-boot.sh
@@ -11,6 +11,12 @@ modprobe -q iscsi_ibft || exit 1
 
 [ -d /sys/firmware/ibft/ethernet0 ] || exit 0
 
+# Force the module to be loaded for the ethernet device; relying on udev
+# to do this doesn't seem to be reliable (possibly because there's a
+# race condition in it being loaded before this point; possibly because
+# we're simply missing the necessary udev rules.)
+modprobe `cat /sys/firmware/ibft/ethernet0/device/modalias`
+
 systemd-cat /sbin/iscsistart -N
 
 cat > $hookdir/initqueue/gnome-hwtest-iscsistart.sh <<EOF


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]