[make-initrd] [PATCH v1 36/41] fork pipeline: bootchain-loop: added 'noop' to separate the steps

Leonid Krivoshein klark.devel at gmail.com
Fri Sep 24 18:59:15 MSK 2021


---
  .../features/bootchain-core/data/sbin/bootchain-loop        | 6 ++++++
  1 file changed, 6 insertions(+)

diff --git 
a/make-initrd/features/bootchain-core/data/sbin/bootchain-loop 
b/make-initrd/features/bootchain-core/data/sbin/bootchain-loop
index 9d15781..229074f 100755
--- a/make-initrd/features/bootchain-core/data/sbin/bootchain-loop
+++ b/make-initrd/features/bootchain-core/data/sbin/bootchain-loop
@@ -48,6 +48,12 @@ while [ -n "$chainsteps" ]; do
  			IM_exec "$0" --foreground
  		fi
  +	elif [ "$name" = noop ]; then
+		chainsteps="${chainsteps#$name}"
+		chainsteps="${chainsteps#,}"
+		prevdir=
+		message "[0] Step '$name' has been passed"
+
  	elif [ -x "$exe" ]; then
  		assign "callnum" "\${callnum_$name:-0}"
  		datadir="$mntdir/src/step$stepnum"
-- 
2.21.0




More information about the Make-initrd mailing list