We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43b27d7 commit 4cbdffdCopy full SHA for 4cbdffd
1 file changed
os/mkosi/components/ovmf/ovmf-build.sh
@@ -19,7 +19,14 @@ if [[ ! -d $src/.git ]]; then
19
fi
20
git -C "$src" fetch -q --depth=1 origin "$REV"
21
git -C "$src" checkout -q --detach FETCH_HEAD
22
-git -C "$src" submodule update --init --recursive --depth=1
+for attempt in 1 2 3; do
23
+ if git -C "$src" submodule update --init --recursive --depth=1; then
24
+ break
25
+ fi
26
+ (( attempt < 3 )) || { echo 'failed to fetch OVMF submodules' >&2; exit 1; }
27
+ git -C "$src" submodule sync --recursive
28
+ sleep $((attempt * 5))
29
+done
30
git -C "$src" reset -q --hard "$REV"
31
patch -d "$src" -p1 --forward --fuzz=0 < \
32
"$ROOT/os/yocto/layers/meta-dstack/recipes-core/dstack-ovmf/dstack-ovmf/0004-Reproduciable.patch"
0 commit comments