From 17f7668031f869ff45a9c19ce764978ff3cfd940 Mon Sep 17 00:00:00 2001 From: Michael Escamilla Date: Sat, 4 Oct 2025 00:10:41 -0700 Subject: [PATCH] Update USB volume selection criteria in OSDCloud.ps1 - Modified the logic to select USB volumes by checking for NTFS file system. - Expanded the file system label matching to include 'USB-Data' along with 'OSDCloud' and 'BHIMAGE'. - Ensured that the selected USB volume meets size requirements for better compatibility. This change enhances the flexibility of USB volume detection for OSDCloud operations. --- Public/OSDCloud.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Public/OSDCloud.ps1 b/Public/OSDCloud.ps1 index c997d980d..8015b2b85 100644 --- a/Public/OSDCloud.ps1 +++ b/Public/OSDCloud.ps1 @@ -981,7 +981,7 @@ #================================================= # Cache to USB #================================================= - $OSDCloudUSB = Get-USBVolume | Where-Object {($_.FileSystemLabel -match 'OSDCloud') -or ($_.FileSystemLabel -match 'BHIMAGE')} | Where-Object {$_.SizeGB -ge 8} | Where-Object {$_.SizeRemainingGB -ge 5} | Select-Object -First 1 + $OSDCloudUSB = Get-USBVolume | Where-Object { $_.FileSystem -eq 'NTFS' } | Where-Object { $_.FileSystemLabel -match 'OSDCloud|BHIMAGE|USB-Data' } | Where-Object { $_.SizeGB -ge 8 } | Where-Object { $_.SizeRemainingGB -ge 5} | Select-Object -First 1 if ($OSDCloudUSB -and $Global:OSDCloud.OSVersion -and $Global:OSDCloud.OSReleaseID) { $OSDownloadChildPath = "$($OSDCloudUSB.DriveLetter):\OSDCloud\OS\$($Global:OSDCloud.OSVersion) $($Global:OSDCloud.OSReleaseID)"