From 55b1be61c07bf930b6b94eba34cea2e2ea11e96f Mon Sep 17 00:00:00 2001 From: Mario Loriedo Date: Wed, 4 Dec 2024 11:16:16 +0100 Subject: [PATCH] Avoid rebooting on Windows when upgrading and WSL isn't installed When building an installer from main branch, and using it to upgrade the latest Podman release on Windows, a reboot is triggered if WSL is not installed. This is a regression caused by an update of the condition to execute `ForceReboot`. This commit fixes the condition and updates some defaults to make it even more unlikely that reboot happens withtout a specific user request for it. It doesn't fix the v5.3.1 to v5.3.2 upgrade though. v5.3.1 has been released already and this commit doesn't avoid that it triggers a reboot when updated. Signed-off-by: Mario Loriedo --- contrib/win-installer/podman.wxs | 12 +++++------ contrib/win-installer/test-installer.ps1 | 26 +++++++++++++++++++++--- 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/contrib/win-installer/podman.wxs b/contrib/win-installer/podman.wxs index 7157776821..66200f0ed6 100644 --- a/contrib/win-installer/podman.wxs +++ b/contrib/win-installer/podman.wxs @@ -41,7 +41,7 @@ - The user has set property `MACHINE_PROVIDER` to "wsl" - The user hasn't set property `WITH_WSL` to 0 --> - + - +