Updated wwinit for clarity #1156
Also: - Renamed /warewulf/wwinit to /warewulf/prescripts Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
14
overlays/wwinit/rootfs/warewulf/wwprescripts
Executable file
14
overlays/wwinit/rootfs/warewulf/wwprescripts
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/sh
|
||||
|
||||
. /warewulf/config
|
||||
|
||||
echo "Warewulf prescript runner (/warewulf/wwprescripts)"
|
||||
scriptdir=/warewulf/init.d
|
||||
echo "Looking for prescripts in /warewulf/init.d/..."
|
||||
ls -1 "${scriptdir}/" | while read -r name; do
|
||||
echo "Running prescript: ${name}..."
|
||||
sh "${scriptdir}/${name}"
|
||||
done
|
||||
echo
|
||||
echo "Running ${WWINIT}..."
|
||||
exec $WWINIT
|
||||
Reference in New Issue
Block a user