From 1291c6cc3a0ca53d49d77d4f9b73707b4096342e Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Fri, 27 Jan 2023 01:07:27 +0100 Subject: [PATCH] armbian-next: fix: kernel-git-oras: make sure `cache_git_bare_dir` exists before trying to decide which media it's on --- lib/functions/compilation/kernel-git-oras.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/functions/compilation/kernel-git-oras.sh b/lib/functions/compilation/kernel-git-oras.sh index b4f67f3fe..6da0a585e 100644 --- a/lib/functions/compilation/kernel-git-oras.sh +++ b/lib/functions/compilation/kernel-git-oras.sh @@ -8,6 +8,8 @@ function kernel_prepare_bare_repo_decide_shallow_or_full() { declare SHALLOW_kernel_git_bare_tree="${cache_git_bare_dir}/shallow-kernel-${KERNEL_MAJOR_MINOR}" # for reuse below git_bundles_dir="${SRC}/cache/git-bundles/kernel" # set outer scope variable + run_host_command_logged mkdir -p "${cache_git_bare_dir}" + # We've two options here. # One is to use the full version, which is around 3gb. "linux-complete.git.tar" and _always_ useful # The other is to use the shallow version, which is around 300mb. "linux-shallow-6.1.git.tar". Not always useful, might end up unshallowing it later in some fetch.