diff options
author | Jonathan Bauer | 2020-01-23 14:28:48 +0100 |
---|---|---|
committer | Jonathan Bauer | 2020-01-23 14:30:50 +0100 |
commit | 53ed4cc4fe7cdd460ad6102c6b23d67352cf5bf5 (patch) | |
tree | 1d6fbaed576c312e24552bcc4a90444160cd9b75 | |
parent | build-initramfs.sh: remove '--no-tags' from git clone routine since it does n... (diff) | |
download | systemd-init-53ed4cc4fe7cdd460ad6102c6b23d67352cf5bf5.tar.gz systemd-init-53ed4cc4fe7cdd460ad6102c6b23d67352cf5bf5.tar.xz systemd-init-53ed4cc4fe7cdd460ad6102c6b23d67352cf5bf5.zip |
quick fix for centos7
-rwxr-xr-x | builder/build-initramfs.sh | 14 |
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" |