armbian-build/lib/functions/rootfs
Ricardo Pardini 6755e9190a don't ship qemu binary in rootfs cache + armhf image/rootfs building on non-armhf-capable-arm64 hosts (Apple M1+)
- refactor `prepare_host_binfmt_qemu()` out of `prepare_host_noninteractive()` and into `rootfs/qemu-static.sh`
  - further split into more functions and return early to avoid deep nesting
  - implement force import and load of qemu-arm for non-armhf capable arm64 hosts (incl magic numbers)
- enhance `deploy_qemu_binary_to_chroot()` & `undeploy_qemu_binary_from_chroot()`;
  - add 2nd param "caller" for better logging/tracking
  - does sanity-check and preserve existing binary if it exists
- explicitly deploy/undeploy for the 3 cases:
  - image: moved undeploy from `post_debootstrap_tweaks()` into image build proper for consistency
  - rootfs: was leaving trash behind (since post_debootstrap_tweaks never ran for rootfs), now properly undeploys
  - initrd: was already fine, just added caller info
- added `arch-test` host dependency
  - ensure `arch-test ${ARCH}` works during prepare-host
- > tl,dr: "can build 32-bit armv7 armhf using Apple silicon; can use rootfs cache cross-arch reliably"
2024-12-31 11:52:12 +01:00
..
apt-install.sh shellfmt: lib/functions; no changes 2024-11-25 11:32:28 +01:00
apt-sources.sh Add / modify (c) in bash scripts (#4922) 2023-03-09 18:30:40 +01:00
create-cache.sh rootfs: don't use the Armbian repo when building rootfs from both GHA pipelines and CLI; fixes #7123 2024-09-30 16:15:36 +02:00
customize.sh lib & config: give shellcheck directions (to /dev/null for dynamic, to repo-relative path for static) for all sourced references 2024-05-19 19:41:35 +02:00
distro-agnostic.sh shellfmt: lib/functions; no changes 2024-11-25 11:32:28 +01:00
distro-specific.sh Adjust deprecated key management support 2024-12-13 09:40:56 +01:00
post-tweaks.sh don't ship qemu binary in rootfs cache + armhf image/rootfs building on non-armhf-capable-arm64 hosts (Apple M1+) 2024-12-31 11:52:12 +01:00
qemu-static.sh don't ship qemu binary in rootfs cache + armhf image/rootfs building on non-armhf-capable-arm64 hosts (Apple M1+) 2024-12-31 11:52:12 +01:00
rootfs-create.sh don't ship qemu binary in rootfs cache + armhf image/rootfs building on non-armhf-capable-arm64 hosts (Apple M1+) 2024-12-31 11:52:12 +01:00
rootfs-desktop.sh rootfs-desktop: disable sddm as well as lightdm and gdm3 in desktop_postinstall() 2023-10-14 00:01:07 +02:00
systemd-utils.sh Add / modify (c) in bash scripts (#4922) 2023-03-09 18:30:40 +01:00
trap-rootfs.sh improve(lvm,cryptroot): export private key with a structurally equal naming scheme; cleanup 2024-12-13 10:01:19 +01:00