armbian-next: rootfs: split create-cache into rootfs-create

- bear with me, this will make sense in the end
- a `mount_chroot()` was ejected out of rootfs building code into main, for reuse's sake
This commit is contained in:
Ricardo Pardini
2023-01-22 04:40:27 +01:00
parent 2d30a44831
commit 6176dc3702
3 changed files with 300 additions and 261 deletions

View File

@@ -46,6 +46,8 @@ function build_rootfs_and_image() {
# stage: prepare basic rootfs: unpack cache or create from scratch
LOG_SECTION="get_or_create_rootfs_cache_chroot_sdcard" do_with_logging get_or_create_rootfs_cache_chroot_sdcard
mount_chroot "${SDCARD}" # this used to be inside get_or_create_rootfs_cache_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*