From d2f3fcf7e16ad489b9b98fa29b21d62012245d4c Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 30 Aug 2019 18:00:12 +0200 Subject: build-initramfs.sh: also add date for xmount --- builder/build-initramfs.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'builder/build-initramfs.sh') diff --git a/builder/build-initramfs.sh b/builder/build-initramfs.sh index 28f6b8af..66dbf172 100755 --- a/builder/build-initramfs.sh +++ b/builder/build-initramfs.sh @@ -45,10 +45,11 @@ if ! [[ -d "$_needed_location" ]]; 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}')" - [ "$mod" = "dnbd3" ] && depth_arg=("--shallow-since" "2019-02-12") - [ "$mod" = "rebash" ] && depth_arg=("--shallow-since" "2016-11-30") - [ "$mod" = "qemu-xmount" ] && depth_arg=("--shallow-since" "2016-01-01") - [ "$mod" = "xmount" ] && depth_arg=("--depth" "1") + 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") git clone -n --no-tags "${depth_arg[@]}" --branch "$branch" "$url" "$path" pushd "$path" git checkout "$commit" -- cgit v1.2.3-55-g7522