From 00bed41cda86c9f422a6eb1c07a4b858bdb98458 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Sun, 12 Feb 2023 00:09:41 +0100 Subject: [PATCH] armbian-next: build_rootfs_and_image(): log correctly mount_chroot()/umount_chroot() calls --- lib/functions/main/rootfs-image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/functions/main/rootfs-image.sh b/lib/functions/main/rootfs-image.sh index f6a603b12..c99748d9a 100644 --- a/lib/functions/main/rootfs-image.sh +++ b/lib/functions/main/rootfs-image.sh @@ -7,7 +7,7 @@ function build_rootfs_and_image() { get_or_create_rootfs_cache_chroot_sdcard # only occurrence of this; has its own logging sections # stage: with a basic rootfs available, we mount the chroot and work on it - mount_chroot "${SDCARD}" + LOG_SECTION="mount_chroot_sdcard" do_with_logging mount_chroot "${SDCARD}" call_extension_method "pre_install_distribution_specific" "config_pre_install_distribution_specific" <<- 'PRE_INSTALL_DISTRIBUTION_SPECIFIC' *give config a chance to act before install_distribution_specific* @@ -41,7 +41,7 @@ function build_rootfs_and_image() { LOG_SECTION="post_debootstrap_tweaks" do_with_logging post_debootstrap_tweaks # clean up / prepare for making the image - umount_chroot "$SDCARD" + LOG_SECTION="umount_chroot_sdcard" do_with_logging umount_chroot "${SDCARD}" # obtain the size, in MiB, of "${SDCARD}" at this point. declare -i rootfs_size_mib