]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(fcoe): rd.nofcoe=0 should disable fcoe
authorLukas Nykryn <lnykryn@redhat.com>
Thu, 18 Feb 2021 10:01:31 +0000 (11:01 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Fri, 19 Feb 2021 09:28:57 +0000 (09:28 +0000)
8446c8f9 Changed the default behavior, but also flipped meaning of 0/1.
Right now rd.nofcoe=0 enables fcoe, which is the opposite what manpage
says.

modules.d/95fcoe/lldpad.sh
modules.d/95fcoe/parse-fcoe.sh

index 7faa2e19dcdcbf9c4f16f6025d2fe6dcc2dd8013..6b1844b01947784994e65130c06d5dd5a5285e28 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-if getargbool 0 rd.nofcoe ; then
+if ! getargbool 1 rd.nofcoe ; then
        info "rd.nofcoe=0: skipping lldpad activation"
        return 0
 fi
index 86f4331e62ccfd7d8c07aa9754fd07cc1f4472f0..5553602f82dd8c89d0e9dc492300ea08d3056f32 100755 (executable)
@@ -13,7 +13,7 @@
 # fcoe=eth0:nodcb:vn2vn
 # fcoe=4a:3f:4c:04:f8:d7:nodcb:fabric
 
-if getargbool 0 rd.nofcoe ; then
+if ! getargbool 1 rd.nofcoe ; then
        info "rd.nofcoe=0: skipping fcoe"
        return 0
 fi