sakittelsen Posted 12 hours ago Posted 12 hours ago After building many images, often there are combinations of kernel, sbc card and linux base that will just give an error, like this one: Getting sources from Git [ kernel:6.1 rk-6.1-rkr5.1 ] fatal: detected dubious ownership in repository at '/home/steven/build/cache/git-bare/shallow-kernel-6.1' To add an exception for this directory, call: git config --global --add safe.directory /home/steven/build/cache/git-bare/shallow-kernel-6.1 [💥] Error 128 occurred in main shell [ at /home/steven/build/lib/functions/logging/runners.sh:211 run_host_command_logged_raw() --> lib/functions/logging/runners.sh:211 run_host_command_logged() --> lib/functions/logging/runners.sh:193 fetch_from_repo() --> lib/functions/general/git.sh:129 kernel_prepare_git() --> lib/functions/compilation/kernel-git.sh:20 do_with_hooks() --> lib/functions/general/extensions.sh:567 do_with_logging_unless_user_terminal() --> lib/functions/logging/section-logging.sh:97 compile_kernel() --> lib/functions/compilation/kernel.sh:35 artifact_kernel_build_from_sources() --> lib/functions/artifacts/artifact-kernel.sh:240 artifact_build_from_sources() --> lib/functions/artifacts/artifacts-obtain.sh:34 obtain_complete_artifact() --> lib/functions/artifacts/artifacts-obtain.sh:280 build_artifact_for_image() --> lib/functions/artifacts/artifacts-obtain.sh:392 main_default_build_packages() --> lib/functions/main/build-packages.sh:102 full_build_packages_rootfs_and_image() --> lib/functions/main/default-build.sh:31 do_with_default_build() --> lib/functions/main/default-build.sh:42 cli_standard_build_run() --> lib/functions/cli/cli-build.sh:25 armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136 cli_entrypoint() --> lib/functions/cli/entrypoint.sh:176 main() --> compile.sh:50 ] [💥] Cleaning up [ please wait for cleanups to finish ] Is there an easy fix for this, or does it mean that the combination of build options are not valid? 0 Quote
Solution sakittelsen Posted 9 hours ago Author Solution Posted 9 hours ago Found the fix, run: sudo git config --system --add safe.directory '*' # For all users and all repositories 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.