2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-08-27 09:06:39 +00:00

build(spec): report a failed mknb on a service node upgrade

The service node runs mknb directly rather than through xcatconfig, and nothing
looks at what it returned, so a failure leaves the node without a current
Genesis image and says nothing at all.

Check it and say so.
This commit is contained in:
Vinícius Ferrão
2026-08-09 12:26:36 -03:00
parent b95cfdc301
commit 798e8ce1bf
+4 -1
View File
@@ -256,7 +256,10 @@ if [ -f "/proc/cmdline" ] && [ "x$(stat -c '%i %d' /)" == "x$(stat -c '%i %d' /p
if [ "$SHAREDTFTP" != "1" ]; then
. /etc/profile.d/xcat.sh
echo Running '"'mknb `uname -m`'"', triggered by the installation/update of xCAT-genesis-scripts-x86_64 ...
mknb `uname -m`
if ! mknb `uname -m`; then
echo "WARNING: mknb did not complete, so the Genesis netboot image may be missing or out of date."
echo " Rerun 'mknb `uname -m`' once the cause is resolved."
fi
fi
fi
fi