]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Fix pre-trigger stage by replacing exit with return in lldpad.sh
authorRadek Vykydal <rvykydal@redhat.com>
Tue, 10 Mar 2020 09:48:21 +0000 (10:48 +0100)
committerDaniel Molkentin <daniel@molkentin.de>
Tue, 10 Mar 2020 11:47:55 +0000 (12:47 +0100)
Using exit makes the pre-trigger stage finish after running 03-lldpad.sh
pre-trigger hook.

modules.d/95fcoe/lldpad.sh

index c32feeedf539c59ebb81ea3abf17d9a1cb0cdcbb..444c943e872ddeb8c5a3f38e953d898fa2df1a31 100755 (executable)
@@ -2,7 +2,7 @@
 
 if ! getargbool 0 rd.nofcoe ; then
        info "rd.nofcoe=0: skipping lldpad activation"
-       exit 0
+       return 0
 fi
 
 # Note lldpad will stay running after switchroot, the system initscripts