From f041d059b5cd6a51da2e95e47301d5a23be6db0a Mon Sep 17 00:00:00 2001 From: Nicola Sella Date: Tue, 6 Aug 2024 18:20:22 +0200 Subject: [PATCH] Add passwd validate and generate steps Add generate helper function. Also, add a troubleshooting try/catch block in case we get more flakes during Set-LocalUser step in Windows powershell. Resolves: https://github.com/containers/podman/issues/23468 Signed-off-by: Nicola Sella --- contrib/cirrus/win-sess-launch.ps1 | 44 ++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/contrib/cirrus/win-sess-launch.ps1 b/contrib/cirrus/win-sess-launch.ps1 index b2a6158629..7086070123 100644 --- a/contrib/cirrus/win-sess-launch.ps1 +++ b/contrib/cirrus/win-sess-launch.ps1 @@ -2,24 +2,52 @@ # tunnels the output such that WSL operations will complete $ErrorActionPreference = 'Stop' +$syms = [char[]]([char]'a'..[char]'z') + + [char[]]([char]'A'..[char]'Z') + + [char[]]([char]'0'..[char]'9') + if ($Args.Length -lt 1) { Write-Object "Usage: " + $MyInvocation.MyCommand.Name + "