extensions/image-output-utm: fix serial console ttyAMA0 for arm64 (#8851)

* extensions/image-output-utm: fix serial console ttyAMA0 for arm64
This commit is contained in:
Ricardo Pardini 2025-11-03 18:14:00 +01:00 committed by GitHub
parent 69caf3ba22
commit 1d9338a951
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,9 +9,10 @@ function extension_prepare_config__prepare_utm_config() {
}
function user_config__metadata_cloud_config() {
display_alert "Preparing UTM config" "${EXTENSION}" "info"
declare -g SERIALCON="ttyS0" # UTM's serial at ttyS0, for x86 @TODO: arm64? ttyAML0?
display_alert "Prepared UTM config" "${EXTENSION}: SERIALCON: '${SERIALCON}'" "debug"
display_alert "Preparing UTM config for serial console" "${EXTENSION}" "info"
declare -g SERIALCON="ttyAMA0"
[[ "${ARCH}" == "amd64" ]] && declare -g SERIALCON="ttyS0"
display_alert "Prepared UTM config for serial console" "${EXTENSION}: SERIALCON: '${SERIALCON}'" "debug"
}
#### *custom post build hook*