From 53ed4cc4fe7cdd460ad6102c6b23d67352cf5bf5 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 23 Jan 2020 14:28:48 +0100 Subject: quick fix for centos7 --- builder/build-initramfs.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/builder/build-initramfs.sh b/builder/build-initramfs.sh index 3606eed0..2245739e 100755 --- a/builder/build-initramfs.sh +++ b/builder/build-initramfs.sh @@ -44,13 +44,13 @@ if [ ! -e "$_repo_dir" ]; then path="$(git config -f .gitmodules --get submodule.${mod}.path)" branch="$(git config -f .gitmodules --get submodule.${mod}.branch)" commit="$(git submodule status $path | grep -oE '[0-9a-f]{40}')" - depth_arg=("--shallow-since") - [ "$mod" = "dnbd3" ] && depth_arg+=("2019-02-12") - [ "$mod" = "rebash" ] && depth_arg+=("2016-11-30") - [ "$mod" = "qemu-xmount" ] && depth_arg+=("2016-01-01") - [ "$mod" = "xmount" ] && depth_arg+=("2015-11-05") - [ "$mod" = "kernel-qcow2-linux" ] && depth_arg+=("2019-08-25") - [ "$mod" = "kernel-qcow2-util-linux" ] && depth_arg+=("2019-08-15") + # depth_arg=("--shallow-since") + # [ "$mod" = "dnbd3" ] && depth_arg+=("2019-02-12") + # [ "$mod" = "rebash" ] && depth_arg+=("2016-11-30") + # [ "$mod" = "qemu-xmount" ] && depth_arg+=("2016-01-01") + # [ "$mod" = "xmount" ] && depth_arg+=("2015-11-05") + [ "$mod" = "kernel-qcow2-linux" ] && continue + [ "$mod" = "kernel-qcow2-util-linux" ] && continue git clone --no-checkout "${depth_arg[@]}" --branch "$branch" "$url" "$path" pushd "$path" git checkout "$commit" -- cgit v1.2.3-55-g7522