Blame SOURCES/0009-Require-libfc-instead-of-fcoe-for-offloaded-FCoE.-15.patch

3187bc
From 8adbf9cf56f486f2f974cf6cdfda657293aff141 Mon Sep 17 00:00:00 2001
3187bc
From: David Lehman <dlehman@redhat.com>
3187bc
Date: Fri, 19 Oct 2018 09:49:56 -0400
3187bc
Subject: [PATCH 1/2] Require libfc instead of fcoe for offloaded FCoE.
3187bc
 (#1575953)
3187bc
3187bc
---
3187bc
 blivet/fcoe.py | 4 ++--
3187bc
 1 file changed, 2 insertions(+), 2 deletions(-)
3187bc
3187bc
diff --git a/blivet/fcoe.py b/blivet/fcoe.py
3187bc
index 1a2cf9d4..3a1887dc 100644
3187bc
--- a/blivet/fcoe.py
3187bc
+++ b/blivet/fcoe.py
3187bc
@@ -32,13 +32,13 @@ _fcoe_module_loaded = False
3187bc
 def has_fcoe():
3187bc
     global _fcoe_module_loaded
3187bc
     if not _fcoe_module_loaded:
3187bc
-        util.run_program(["modprobe", "fcoe"])
3187bc
+        util.run_program(["modprobe", "libfc"])
3187bc
         _fcoe_module_loaded = True
3187bc
         if "bnx2x" in util.lsmod():
3187bc
             log.info("fcoe: loading bnx2fc")
3187bc
             util.run_program(["modprobe", "bnx2fc"])
3187bc
 
3187bc
-    return os.access("/sys/module/fcoe", os.X_OK)
3187bc
+    return os.access("/sys/module/libfc", os.X_OK)
3187bc
 
3187bc
 
3187bc
 class FCoE(object):
3187bc
-- 
3187bc
2.17.2
3187bc