Compare commits

...

2 commits

Author SHA1 Message Date
pedro bbfb5864fd deploy workbench: bugfix copy of settings.ini 2024-09-24 12:21:03 -03:00
pedro 47712d3a14 pxe: improve installation msg 2024-09-24 12:20:24 -03:00
2 changed files with 7 additions and 2 deletions

View file

@ -199,7 +199,12 @@ create_persistence_partition() {
mkdir -p "${tmp_rw_mount}"
${SUDO} mount "$(pwd)/${rw_img_path}" "${tmp_rw_mount}"
${SUDO} mkdir -p "${tmp_rw_mount}/settings"
${SUDO} cp -v settings.ini "${tmp_rw_mount}/settings/settings.ini"
if [ -f "settings.ini" ]; then
${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}"
uuid="$(blkid "${rw_img_path}" | awk '{ print $3; }')"

View file

@ -62,7 +62,7 @@ init_config() {
if [ -f ./.env ]; then
. ./.env
else
echo 'WARNING: ./.env does not exist yet, cannot read config from there. You can take inspiration in file ./.env.example'
echo 'WARNING: .env does not exist yet, cannot read config from there. You can take inspiration with file .env.example'
fi
VERSION_CODENAME="${VERSION_CODENAME:-bookworm}"
tftp_path="${tftp_path:-/srv/pxe-tftp}"