Adding replace in salt formula symlinks
Since some all-in-one models require installation of such formulas
like baremetal-simulator, tftpd-hpa replacement of "-" to "_" was
added while creating symlinks since those modules on the file
system have names with "_". The change is related only to
symlinks since while installing salt formulas "-" is used
as expected. Replacement is done using shell expansion
Change-Id: I69d4724212ec21e749200b8681ab1c2f1d21191d
diff --git a/bootstrap.sh b/bootstrap.sh
index a6e18cd..f12fc1c 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -528,6 +528,8 @@
echo -e "\nInstall salt-formula-${formula_service} failed.\n"
exit 1
fi
+ #Since some salt formula names contain "-" and in symlinks they should contain "_" adding replacement
+ formula_service=${formula_service//-/$'_'}
[ ! -L "${RECLASS_ROOT}/classes/service/${formula_service}" ] && \
ln -sf ${FORMULAS_PATH}/reclass/service/${formula_service} ${RECLASS_ROOT}/classes/service/${formula_service}
done