ROM is type mdata, which is base64'd

This commit is contained in:
sickcodes 2022-11-19 09:53:54 +00:00
parent 097eb8eb35
commit 44f47fc8a0
2 changed files with 3 additions and 1 deletions

View file

@ -245,7 +245,8 @@ generate_bootdisk () {
&& [ "${UUID}" ] \
&& [ "${MAC_ADDRESS}" ]; then
ROM="${MAC_ADDRESS//\:/}"
ROM="${ROM,,}"
ROM="$(awk '{print tolower($0)}' <<< "${ROM}")"
ROM="$(base64 <<< "${ROM}")"
sed -e s/\{\{DEVICE_MODEL\}\}/"${DEVICE_MODEL}"/g \
-e s/\{\{SERIAL\}\}/"${SERIAL}"/g \
-e s/\{\{BOARD_SERIAL\}\}/"${BOARD_SERIAL}"/g \

View file

@ -338,6 +338,7 @@ EOF
source "${OUTPUT_ENV_FILE}"
ROM="${MAC_ADDRESS//\:/}"
ROM="$(awk '{print tolower($0)}' <<< "${ROM}")"
ROM="$(base64 <<< "${ROM}")"
sed -e s/\{\{DEVICE_MODEL\}\}/"${DEVICE_MODEL}"/g \
-e s/\{\{SERIAL\}\}/"${SERIAL}"/g \
-e s/\{\{BOARD_SERIAL\}\}/"${BOARD_SERIAL}"/g \