summaryrefslogtreecommitdiffstats
path: root/builder/build-initramfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'builder/build-initramfs.sh')
-rwxr-xr-xbuilder/build-initramfs.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/builder/build-initramfs.sh b/builder/build-initramfs.sh
index 6a956a7f..2b0f9765 100755
--- a/builder/build-initramfs.sh
+++ b/builder/build-initramfs.sh
@@ -37,7 +37,12 @@ if ! [[ -d "$_needed_location" ]]; then
git://git.openslx.org/openslx-ng/systemd-init.git \
"$_temporary_repository_location"
pushd "$_temporary_repository_location"
- git submodule update --init --remote --depth 1
+ git submodule init
+ git submodule foreach '
+ branch="$(git config -f $toplevel/.gitmodules submodule.$name.branch)"
+ git clone --depth 1 --branch $branch
+ '
+ git submodule update --remote
popd
cp --recursive \
"${_temporary_repository_location}/builder/dnbd3-rootfs" \