Skip to content

Commit 795b7f0

Browse files
committed
fix pve-qemu submodule subhook update
1 parent 4bb252d commit 795b7f0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎packages/pve-qemu/autobuild.sh‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ errlog(){
1010
update_submodule(){
1111
cd $SH_DIR/$PKGNAME
1212
echo "init submodule"
13+
git submodule update --init --depth=1 || errlog "submodule update failed"
14+
cd $SH_DIR/$PKGNAME/qemu
1315
git submodule update --init --depth=1
1416
# replace Zeex/subhook
15-
echo "set submodule url"
16-
cd qemu/roms/edk2/
17+
echo "set submodule url for subhook"
18+
cd $SH_DIR/$PKGNAME/qemu/roms/edk2/
1719
git submodule set-url UnitTestFrameworkPkg/Library/SubhookLib/subhook https://github.com/tianocore/edk2-subhook
1820
git submodule update --init --recursive --depth=1
1921
}

0 commit comments

Comments
 (0)