armbian-next: tune logging: unmounting, u-boot prep/source/install; traps; extensions

This commit is contained in:
Ricardo Pardini
2023-01-17 06:38:50 +01:00
parent ff4b5069ce
commit 1636a2afea
5 changed files with 34 additions and 27 deletions

View File

@@ -74,14 +74,16 @@ create_image_from_sdcard_rootfs() {
Called before unmounting both `/root` and `/boot`.
PRE_UMOUNT_FINAL_IMAGE
# Check the partition table after the uboot code has been written
display_alert "Partition table after write_uboot" "$LOOP" "debug"
run_host_command_logged sfdisk -l "${LOOP}" # @TODO: use asset..
if [[ "${SHOW_DEBUG}" == "yes" ]]; then
# Check the partition table after the uboot code has been written
display_alert "Partition table after write_uboot" "$LOOP" "debug"
run_host_command_logged sfdisk -l "${LOOP}" # @TODO: use asset..
fi
run_host_command_logged sync
umount_chroot_recursive "${MOUNT}"
[[ $CRYPTROOT_ENABLE == yes ]] && cryptsetup luksClose $ROOT_MAPPER
umount_chroot_recursive "${MOUNT}" "MOUNT"
[[ $CRYPTROOT_ENABLE == yes ]] && cryptsetup luksClose "$ROOT_MAPPER"
call_extension_method "post_umount_final_image" "config_post_umount_final_image" <<- 'POST_UMOUNT_FINAL_IMAGE'
*allow config to hack into the image after the unmount*