From 798e8ce1bf99b541b0c14cb23646be5f662ba769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Sun, 9 Aug 2026 12:26:36 -0300 Subject: [PATCH] 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. --- xCATsn/xCATsn.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCATsn/xCATsn.spec b/xCATsn/xCATsn.spec index 02a620e5a..b8c605082 100644 --- a/xCATsn/xCATsn.spec +++ b/xCATsn/xCATsn.spec @@ -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