summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2020-01-23 14:28:48 +0100
committerJonathan Bauer2020-01-23 14:30:50 +0100
commit53ed4cc4fe7cdd460ad6102c6b23d67352cf5bf5 (patch)
tree1d6fbaed576c312e24552bcc4a90444160cd9b75
parentbuild-initramfs.sh: remove '--no-tags' from git clone routine since it does n... (diff)
downloadsystemd-init-53ed4cc4fe7cdd460ad6102c6b23d67352cf5bf5.tar.gz
systemd-init-53ed4cc4fe7cdd460ad6102c6b23d67352cf5bf5.tar.xz
systemd-init-53ed4cc4fe7cdd460ad6102c6b23d67352cf5bf5.zip
quick fix for centos7
-rwxr-xr-xbuilder/build-initramfs.sh14
1 files 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"