]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
95fcoe: Fix startup when fcoe module is included
authorDaniel Molkentin <dmolkentin@suse.com>
Thu, 18 Jul 2019 09:29:29 +0000 (11:29 +0200)
committerDaniel Molkentin <daniel@molkentin.de>
Thu, 18 Jul 2019 22:25:06 +0000 (00:25 +0200)
The parse-fcoe.sh hook is sourced, and hence must not contain
exit 0 calls. Otherwise, the cmdline sequence will be interupted,
and no error will be reported to systemd. Use return instead.

Reference: boo#1136977

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

index 748f7a98d4e6bd5f94f83c772ccfd6ad8cff0d4a..c05adb60fc97dc7d05411f01f1c834dd47aee2aa 100755 (executable)
@@ -15,7 +15,7 @@
 
 if ! getargbool 0 rd.nofcoe ; then
        info "rd.nofcoe=0: skipping fcoe"
-       exit 0
+       return 0
 fi
 
 [ -z "$fcoe" ] && fcoe=$(getarg fcoe=)