diff options
author | Jonathan Bauer | 2019-08-30 18:00:12 +0200 |
---|---|---|
committer | Jonathan Bauer | 2019-08-30 18:00:12 +0200 |
commit | d2f3fcf7e16ad489b9b98fa29b21d62012245d4c (patch) | |
tree | beceec698583f8160cec1c699cc16c54be87364a | |
parent | build-initramfs.sh: fix broken shallow submodule (diff) | |
download | systemd-init-d2f3fcf7e16ad489b9b98fa29b21d62012245d4c.tar.gz systemd-init-d2f3fcf7e16ad489b9b98fa29b21d62012245d4c.tar.xz systemd-init-d2f3fcf7e16ad489b9b98fa29b21d62012245d4c.zip |
build-initramfs.sh: also add date for xmount
-rwxr-xr-x | builder/build-initramfs.sh | 9 |
1 files changed, 5 insertions, 4 deletions
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" |