mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
armbian-next: tune logging: unmounting, u-boot prep/source/install; traps; extensions
This commit is contained in:
@@ -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*
|
||||
|
||||
Reference in New Issue
Block a user