1bf31c
From e96bab3e688b7fc9b6f5e6b90c6d1ea4d517bc4a Mon Sep 17 00:00:00 2001
1bf31c
From: Radek Vykydal <rvykydal@redhat.com>
1bf31c
Date: Tue, 10 Mar 2020 10:48:21 +0100
1bf31c
Subject: [PATCH] Fix pre-trigger stage by replacing exit with return in
1bf31c
 lldpad.sh
1bf31c
1bf31c
Using exit makes the pre-trigger stage finish after running 03-lldpad.sh
1bf31c
pre-trigger hook.
1bf31c
1bf31c
(cherry picked from commit 7fb8f939a52a904b1860e303a6a7fe69ba0d2ceb)
1bf31c
1bf31c
Resolves: #1914957
1bf31c
---
1bf31c
 modules.d/95fcoe/lldpad.sh | 2 +-
1bf31c
 1 file changed, 1 insertion(+), 1 deletion(-)
1bf31c
1bf31c
diff --git a/modules.d/95fcoe/lldpad.sh b/modules.d/95fcoe/lldpad.sh
1bf31c
index c32feeed..444c943e 100755
1bf31c
--- a/modules.d/95fcoe/lldpad.sh
1bf31c
+++ b/modules.d/95fcoe/lldpad.sh
1bf31c
@@ -2,7 +2,7 @@
1bf31c
 
1bf31c
 if ! getargbool 0 rd.nofcoe ; then
1bf31c
 	info "rd.nofcoe=0: skipping lldpad activation"
1bf31c
-	exit 0
1bf31c
+	return 0
1bf31c
 fi
1bf31c
 
1bf31c
 # Note lldpad will stay running after switchroot, the system initscripts
1bf31c