mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
extensions: Add "Extension: ${EXTENSION}: " prefix to some extension logs
Establish some consistency with extension logging. Some extensions use another format:
display_alert "message" "${EXTENSION}" "info"
These were *not* adapted to this new schema.
This commit is contained in:
@@ -22,15 +22,15 @@ function post_umount_final_image__200_zerofree() {
|
||||
local partType
|
||||
partType="$(file -s "${partDev}" | awk -F ': ' '{print $2}')"
|
||||
if [[ "${partType}" == *"ext4"* ]]; then
|
||||
display_alert "Zerofreeing ext4 partition ${partDev}" "${EXTENSION}" "info"
|
||||
display_alert "Extension: ${EXTENSION}: Zerofreeing ext4 partition ${partDev}" "${EXTENSION}" "info"
|
||||
run_host_command_logged zerofree "${partDev}"
|
||||
else
|
||||
display_alert "Skipping zerofreeing partition ${partDev} of type '${partType}'" "${EXTENSION}" "info"
|
||||
display_alert "Extension: ${EXTENSION}: Skipping zerofreeing partition ${partDev} of type '${partType}'" "${EXTENSION}" "info"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
function pre_umount_final_image__999_show_space_usage() {
|
||||
display_alert "Calculating used space in image" "${EXTENSION}" "info"
|
||||
display_alert "Extension: ${EXTENSION}: Calculating used space in image" "${EXTENSION}" "info"
|
||||
run_host_command_logged "cd ${MOUNT} && " du -h -d 4 -x "." "| sort -h | tail -20"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user