armbian-next: many fixes after v29 rebase; mostly involving umount

- remove grub's --verbose, it's really too verbose
- trust in TMPDIR, do not use trap at all in compile_plymouth-theme-armbian - settings traps adhoc is forbidden in armbian-next as well
- be more verbose in umount_chroot(), do not try to unmount tmpfs-mounted dir itself, only xx/tmp
- try to be smarter about /tmp being mounted in rootfs-to-image -- in the end the recursive saves us
- run post_debootstrap_tweaks when the SDCARD is still mounted, not after
- don't try to download anything from any mirrors if SKIP_ARMBIAN_REPO==yes
This commit is contained in:
Ricardo Pardini
2022-09-25 03:29:51 +02:00
parent 833a7d9ab6
commit d85bf2a155
7 changed files with 25 additions and 16 deletions

View File

@@ -69,11 +69,11 @@ function build_rootfs_and_image() {
# for reference, debugging / sanity checking
LOG_SECTION="list_installed_packages" do_with_logging list_installed_packages
LOG_SECTION="post_debootstrap_tweaks" do_with_logging post_debootstrap_tweaks
# clean up / prepare for making the image
umount_chroot "$SDCARD"
LOG_SECTION="post_debootstrap_tweaks" do_with_logging post_debootstrap_tweaks
# ------------------------------------ UP HERE IT's 'rootfs' stuff -------------------------------
#------------------------------------ DOWN HERE IT's 'image' stuff -------------------------------