nfvbenchvm: add 2 debug features to build-image.sh
[nfvbench.git] / nfvbenchvm / dib / elements / nfvbenchvm / finalise.d / 51-add-cpu-isolation
index 12ffcdc..e9cf3c5 100755 (executable)
@@ -1,5 +1,12 @@
 #!/bin/bash
 
+if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
+    set -x
+fi
+
+# Stop on error
+set -euo pipefail
+
 grubby --update-kernel=ALL --args="isolcpus=1-7 rcu_nocbs=1 nohz=on nohz_full=1 nmi_watchdog=0"
 grubby --update-kernel=ALL --args="default_hugepagesz=1G hugepagesz=1G hugepages=4"
 grubby --update-kernel=ALL --args="intel_iommu=on iommu=pt"