summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2019-08-30 18:00:12 +0200
committerJonathan Bauer2019-08-30 18:00:12 +0200
commitd2f3fcf7e16ad489b9b98fa29b21d62012245d4c (patch)
treebeceec698583f8160cec1c699cc16c54be87364a
parentbuild-initramfs.sh: fix broken shallow submodule (diff)
downloadsystemd-init-d2f3fcf7e16ad489b9b98fa29b21d62012245d4c.tar.gz
systemd-init-d2f3fcf7e16ad489b9b98fa29b21d62012245d4c.tar.xz
systemd-init-d2f3fcf7e16ad489b9b98fa29b21d62012245d4c.zip
build-initramfs.sh: also add date for xmount
-rwxr-xr-xbuilder/build-initramfs.sh9
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"