28ab1c
From c588aea59c9a2441596b84722c6c32449676f07d Mon Sep 17 00:00:00 2001
28ab1c
From: Lukas Nykryn <lnykryn@redhat.com>
28ab1c
Date: Thu, 18 Feb 2021 11:23:41 +0100
28ab1c
Subject: [PATCH] fix(fcoe): rename rd.nofcoe to rd.fcoe
28ab1c
28ab1c
The current name of this bool is kinda stupid. Based on the manpage
28ab1c
setting it to 0 turns off fcoe, which means that nofcoe=1 should mean
28ab1c
that it is on.
28ab1c
28ab1c
Let's just do the same thing as with rd.lvm=0, rd.luks=0,....
28ab1c
28ab1c
(cherry picked from commit 6f7823bce65dd4b52497dbb94892b637fd06471a)
28ab1c
28ab1c
Resolves: #1929201
28ab1c
---
28ab1c
 dracut.cmdline.7.asc           | 2 +-
28ab1c
 modules.d/95fcoe/lldpad.sh     | 4 ++--
28ab1c
 modules.d/95fcoe/parse-fcoe.sh | 4 ++--
28ab1c
 3 files changed, 5 insertions(+), 5 deletions(-)
28ab1c
28ab1c
diff --git a/dracut.cmdline.7.asc b/dracut.cmdline.7.asc
28ab1c
index bf745575..327f85de 100644
28ab1c
--- a/dracut.cmdline.7.asc
28ab1c
+++ b/dracut.cmdline.7.asc
28ab1c
@@ -779,7 +779,7 @@ iscsistart -b --param node.session.timeo.replacement_timeout=30
28ab1c
 
28ab1c
 FCoE
28ab1c
 ~~~~
28ab1c
-**rd.nofcoe=0**::
28ab1c
+**rd.fcoe=0**::
28ab1c
     disable FCoE and lldpad
28ab1c
 
28ab1c
 **fcoe=**__<edd|interface|MAC>__:__{dcb|nodcb}__:__{fabric|vn2vn}__::
28ab1c
diff --git a/modules.d/95fcoe/lldpad.sh b/modules.d/95fcoe/lldpad.sh
28ab1c
index 6b1844b0..c860035f 100755
28ab1c
--- a/modules.d/95fcoe/lldpad.sh
28ab1c
+++ b/modules.d/95fcoe/lldpad.sh
28ab1c
@@ -1,7 +1,7 @@
28ab1c
 #!/bin/bash
28ab1c
 
28ab1c
-if ! getargbool 1 rd.nofcoe ; then
28ab1c
-	info "rd.nofcoe=0: skipping lldpad activation"
28ab1c
+if ! getargbool 1 rd.fcoe -d -n rd.nofcoe ; then
28ab1c
+	info "rd.fcoe=0: skipping lldpad activation"
28ab1c
 	return 0
28ab1c
 fi
28ab1c
 
28ab1c
diff --git a/modules.d/95fcoe/parse-fcoe.sh b/modules.d/95fcoe/parse-fcoe.sh
28ab1c
index 5553602f..0a8067f5 100755
28ab1c
--- a/modules.d/95fcoe/parse-fcoe.sh
28ab1c
+++ b/modules.d/95fcoe/parse-fcoe.sh
28ab1c
@@ -13,8 +13,8 @@
28ab1c
 # fcoe=eth0:nodcb:vn2vn
28ab1c
 # fcoe=4a:3f:4c:04:f8:d7:nodcb:fabric
28ab1c
 
28ab1c
-if ! getargbool 1 rd.nofcoe ; then
28ab1c
-	info "rd.nofcoe=0: skipping fcoe"
28ab1c
+if ! getargbool 1 rd.fcoe -d -n rd.nofcoe ; then
28ab1c
+	info "rd.fcoe=0: skipping fcoe"
28ab1c
 	return 0
28ab1c
 fi
28ab1c
 
28ab1c