armbian-build/lib/functions/general
Ricardo Pardini 88ff66ae11
armbian-next: adaptive shallow/full Kernel git bare git (3gb -> 300mb download)
- allows using pre-shallow-ed bare trees, specific to the KERNEL_MAJOR_MINOR
- uses shallow by default if storage is "slow" (mmc), or free disk space < 32g (@TODO tweak this)
- if full tree already there keeps using it
- allow forcing decision with `KERNEL_GIT=full` or `KERNEL_GIT=shallow`
- countdown to confirm if decision based on storage type/free space and user is interactive
  - this has some of the worst copy ever written
- @TODO refactor the device type / free space code, reuse across codebase (3-4 other spots detect free space)
- @TODO GHA self-hosted (full) vs hosted (shallow) runners decision
- sprinkle with `wait_for_disk_sync()` around clean/download/extract
- sprinkle git with debugs, and an info between fetch and checkout (otherwise it seems "fetch" takes a long time)
2023-02-18 07:43:54 -03:00
..
chroot-helpers.sh armbian-next: replace bare sync invocations by introducing wait_for_disk_sync(); sync early at start of build 2023-02-18 07:43:53 -03:00
cleaning.sh armbian-next: split prepare_host(), fix .tmp reset trap 2023-02-18 07:43:10 -03:00
countdown.sh armbian-next: countdown: split off file for countdown functions (countdown-to-abort and countdown-to-continue) 2023-02-18 07:43:50 -03:00
downloads.sh armbian-next: curb aria2c's complaining a bit 2023-02-18 07:42:17 -03:00
git.sh armbian-next: adaptive shallow/full Kernel git bare git (3gb -> 300mb download) 2023-02-18 07:43:54 -03:00
oci-oras.sh armbian-next: kernel: git: split via-ORAS and via-Bundle tangle 2023-02-18 07:43:51 -03:00
python-tools.sh armbian-next: Python tooling: use consolidated+hashed+cached pip base/pycache; don't pip during Dockerfile build, nor cli-requirements 2023-02-18 07:42:44 -03:00
retry.sh armbian-next: use retries for downloading ORAS tooling 2023-02-18 07:43:35 -03:00