Skip to content

Fix: derive OSVersion and OSBuild from OSName in Default parameter set#362

Open
PhilipSiborgs wants to merge 1 commit intoOSDeploy:masterfrom
PhilipSiborgs:fix/osname-parsing-for-usb-cache
Open

Fix: derive OSVersion and OSBuild from OSName in Default parameter set#362
PhilipSiborgs wants to merge 1 commit intoOSDeploy:masterfrom
PhilipSiborgs:fix/osname-parsing-for-usb-cache

Conversation

@PhilipSiborgs
Copy link
Copy Markdown

When Start-OSDCloud is invoked with -OSName (Default parameter set), OSVersion and OSBuild were left $null, which silently disabled the automatic OS cache to OSDCloudUSB in OSDCloud.ps1:986. DriverPacks were cached correctly, but the OS image was downloaded straight to C:\OSDCloud\OS and never persisted to the USB for future runs.

Parsing OSName (e.g. 'Windows 11 25H2 x64') into OSVersion and OSBuild after it is resolved makes the downstream global state identical to the Legacy parameter set, restoring the expected auto-caching behavior without touching any caching logic.

When Start-OSDCloud is invoked with -OSName (Default parameter set),
OSVersion and OSBuild were left $null, which silently disabled the
automatic OS cache to OSDCloudUSB in OSDCloud.ps1:986. DriverPacks
were cached correctly, but the OS image was downloaded straight to
C:\OSDCloud\OS and never persisted to the USB for future runs.

Parsing OSName (e.g. 'Windows 11 25H2 x64') into OSVersion and
OSBuild after it is resolved makes the downstream global state
identical to the Legacy parameter set, restoring the expected
auto-caching behavior without touching any caching logic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant