nfvbenchvm: add 2 debug features to build-image.sh
[nfvbench.git] / nfvbenchvm / dib / elements / nfvbenchvm / post-install.d / 03-copy-rc-local
1 #!/bin/bash
2
3 if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
4     set -x
5 fi
6
7 # Stop on error
8 set -euo pipefail
9
10 # set accurate rc.local file corresponding to current image built
11 if [ $DIB_DEV_IMAGE = "loopvm" ]; then
12     mv /etc/rc.d/rc.local.loopvm /etc/rc.d/rc.local
13 else
14     mv /etc/rc.d/rc.local.generator /etc/rc.d/rc.local
15 fi