[Libosinfo] [osinfo-db PATCH 4/5] install-script, windows, desktop: Prevent infinite loop during post-install

Fabiano Fidêncio fidencio at redhat.com
Thu Jun 6 12:31:11 UTC 2019


If all the installation files generated are put in the same place, we'd
have both spice-guest-tools.cmd being called as expected but we'd also
call windows.cmd from windows.cmd, generating an infinite loop during
the post-install phase of the windows installation.

In order to avoid doing so, let's add a condition to *not* call
windows.cmd from windows.cmd file.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 data/install-script/microsoft.com/windows-cmd-desktop.xml.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/install-script/microsoft.com/windows-cmd-desktop.xml.in b/data/install-script/microsoft.com/windows-cmd-desktop.xml.in
index 978bafd..f70a1c1 100644
--- a/data/install-script/microsoft.com/windows-cmd-desktop.xml.in
+++ b/data/install-script/microsoft.com/windows-cmd-desktop.xml.in
@@ -101,7 +101,7 @@ bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS
 bcdedit.exe -set TESTSIGNING ON
 </xsl:if>
 
-for %%i in ("<xsl:call-template name="post-install-drivers-disk"/>:<xsl:value-of select="config/post-install-drivers-location"/>\*.cmd") do cmd /c %%i
+for %%i in ("<xsl:call-template name="post-install-drivers-disk"/>:<xsl:value-of select="config/post-install-drivers-location"/>\*.cmd") do if not "%%i" == "<xsl:call-template name="post-install-drivers-disk"/>:\<xsl:value-of select="script/expected-filename"/>" cmd /c %%i
 
 EXIT
         </xsl:template>
-- 
2.21.0




More information about the Libosinfo mailing list