deploy workbench: bugfix copy of settings.ini
This commit is contained in:
parent
91b8fa3a4e
commit
748a2255eb
|
@ -199,7 +199,12 @@ create_persistence_partition() {
|
||||||
mkdir -p "${tmp_rw_mount}"
|
mkdir -p "${tmp_rw_mount}"
|
||||||
${SUDO} mount "$(pwd)/${rw_img_path}" "${tmp_rw_mount}"
|
${SUDO} mount "$(pwd)/${rw_img_path}" "${tmp_rw_mount}"
|
||||||
${SUDO} mkdir -p "${tmp_rw_mount}/settings"
|
${SUDO} mkdir -p "${tmp_rw_mount}/settings"
|
||||||
|
if [ -f "settings.ini" ]; then
|
||||||
${SUDO} cp -v settings.ini "${tmp_rw_mount}/settings/settings.ini"
|
${SUDO} cp -v settings.ini "${tmp_rw_mount}/settings/settings.ini"
|
||||||
|
else
|
||||||
|
echo "ERROR: settings.ini does not exist yet, cannot read config from there. You can take inspiration with file settings.ini.example"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
${SUDO} umount "${tmp_rw_mount}"
|
${SUDO} umount "${tmp_rw_mount}"
|
||||||
|
|
||||||
uuid="$(blkid "${rw_img_path}" | awk '{ print $3; }')"
|
uuid="$(blkid "${rw_img_path}" | awk '{ print $3; }')"
|
||||||
|
|
Loading…
Reference in New Issue