1bf31c
From 1651c3074f596b80478473a126c02c27398429dd Mon Sep 17 00:00:00 2001
1bf31c
From: Daniel Molkentin <dmolkentin@suse.com>
1bf31c
Date: Thu, 18 Jul 2019 11:29:29 +0200
1bf31c
Subject: [PATCH] 95fcoe: Fix startup when fcoe module is included
1bf31c
1bf31c
The parse-fcoe.sh hook is sourced, and hence must not contain
1bf31c
exit 0 calls. Otherwise, the cmdline sequence will be interupted,
1bf31c
and no error will be reported to systemd. Use return instead.
1bf31c
1bf31c
Reference: boo#1136977
1bf31c
(cherry picked from commit 4f194276417237168f5bc929ba847a23b6a4c77f)
1bf31c
1bf31c
Resolves: #1914957
1bf31c
---
1bf31c
 modules.d/95fcoe/parse-fcoe.sh | 2 +-
1bf31c
 1 file changed, 1 insertion(+), 1 deletion(-)
1bf31c
1bf31c
diff --git a/modules.d/95fcoe/parse-fcoe.sh b/modules.d/95fcoe/parse-fcoe.sh
1bf31c
index 7a6ff755..8bb55c6e 100755
1bf31c
--- a/modules.d/95fcoe/parse-fcoe.sh
1bf31c
+++ b/modules.d/95fcoe/parse-fcoe.sh
1bf31c
@@ -15,7 +15,7 @@
1bf31c
 
1bf31c
 if ! getargbool 0 rd.nofcoe ; then
1bf31c
 	info "rd.nofcoe=0: skipping fcoe"
1bf31c
-	exit 0
1bf31c
+	return 0
1bf31c
 fi
1bf31c
 
1bf31c
 [ -z "$fcoe" ] && fcoe=$(getarg fcoe=)
1bf31c