diff options
author | Jonathan Bauer | 2019-02-08 15:53:37 +0100 |
---|---|---|
committer | Jonathan Bauer | 2019-02-08 15:53:37 +0100 |
commit | 240e9ca52c4f0f6c1fe70f898fcbcd470c9f802d (patch) | |
tree | 01bc6e243226439704a233e24b4bcc06e7c57460 | |
parent | remove deprecated modules (diff) | |
download | systemd-init-240e9ca52c4f0f6c1fe70f898fcbcd470c9f802d.tar.gz systemd-init-240e9ca52c4f0f6c1fe70f898fcbcd470c9f802d.tar.xz systemd-init-240e9ca52c4f0f6c1fe70f898fcbcd470c9f802d.zip |
build-initramfs: clone stable branch only when initially setting up the
repo
-rwxr-xr-x | builder/build-initramfs.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/builder/build-initramfs.sh b/builder/build-initramfs.sh index a646018c..aefc6544 100755 --- a/builder/build-initramfs.sh +++ b/builder/build-initramfs.sh @@ -22,6 +22,8 @@ # Note that you only get very necessary output until you provide "--verbose" as # commandline options. declare -rg _root_dir="$(readlink -f $(dirname ${BASH_SOURCE[0]}))" +declare -rg _git_source="git://git.openslx.org/openslx-ng/systemd-init.git" +declare -rg _git_branch="stable" ## region ensure presence of needed dependencies set -o errexit _needed_location="${_root_dir}/modules.d" @@ -31,9 +33,8 @@ if ! [[ -d "$_needed_location" ]]; then echo "Needed dependency \"git\" isn't available. Please install \"git\" or provide the repositories data structure in \"${_root_dir}\"." fi _temporary_repository_location="$(mktemp --directory)" - git clone --depth 1 --no-single-branch \ - git://git.openslx.org/openslx-ng/systemd-init.git \ - "$_temporary_repository_location" + git clone --branch "$_git_branch" --single-branch --depth 1 \ + "$_git_source" "$_temporary_repository_location" pushd "$_temporary_repository_location" git submodule init # shellcheck disable=SC2016 |