neil / rpms / python-blivet

Forked from rpms/python-blivet a year ago
Clone

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

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