nfvbenchvm: abort build on error
[nfvbench.git] / nfvbenchvm / dib / elements / nfvbenchvm / finalise.d / 51-add-cpu-isolation
index 12ffcdc..14cb913 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/bash
 
+# 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"