29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
From c655fbd1adb6ccc754b35cd669c4a99eab66883b Mon Sep 17 00:00:00 2001
|
|
From: Vadim Rozenfeld <vrozenfe@redhat.com>
|
|
Date: Tue, 15 Jul 2025 18:35:16 +1000
|
|
Subject: [PATCH] Ignore ERROR_NO_MORE_ITEMS status from PnPUtil.
|
|
|
|
This status indicates the target device already has a
|
|
better or newer driver installed.
|
|
|
|
Signed-off-by: Vadim Rozenfeld <vrozenfe@redhat.com>
|
|
(cherry picked from commit 523aff28975532a4fe715193c28c2ede21741392)
|
|
(cherry picked from commit 7c27641fc6d0ff1dfa8fe50b1a1ff9532d3c55ab)
|
|
---
|
|
convert/convert_windows.ml | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/convert/convert_windows.ml b/convert/convert_windows.ml
|
|
index a9ec276a..9b86b9a1 100644
|
|
--- a/convert/convert_windows.ml
|
|
+++ b/convert/convert_windows.ml
|
|
@@ -431,7 +431,7 @@ let convert (g : G.guestfs) source inspect i_firmware
|
|
for %%f in (\"%inf_dir%*.inf\") do (\n\
|
|
echo Installing: %%~nxf.\n\
|
|
%systemroot%\\Sysnative\\PnPutil -i -a \"%%f\"\n\
|
|
- if !errorlevel! NEQ 0 (\n\
|
|
+ if !errorlevel! neq 0 if !errorlevel! neq 259 (\n\
|
|
echo Failed to install %%~nxf.\n\
|
|
exit /b 249\n\
|
|
) else (\n\
|