diff options
Diffstat (limited to 'builder')
| -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 |
