diff options
Diffstat (limited to 'builder/build-initramfs.sh')
-rwxr-xr-x | builder/build-initramfs.sh | 7 |
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" \ |