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