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