Skip to content

Inline ForceDownload support and remove patch-file workflow - #1

Merged
vartaxe merged 22 commits into
mainfrom
copilot/merge-patch-and-delete-unused-branch
Aug 15, 2026
Merged

vartaxe merged 22 commits into
mainfrom
copilot/merge-patch-and-delete-unused-branch

Conversation

Copilot AI commented Aug 15, 2026

Copy link
Copy Markdown

This change removes the external patch step for Invoke-CMDownloadBIOSPackage.ps1 and makes the repository self-contained. The Dell recovery-image flow now ships directly in the script instead of being carried separately in ForceDownload.patch.

  • What changed

    • Added built-in -ForceDownload support to Invoke-CMDownloadBIOSPackage.ps1
    • Resolved SMSTSForceDellBIOSFlash / SMSTSForceBIOSDownload task-sequence variables inside the script
    • Forced package staging when the installed BIOS is already current so the subsequent Dell force-flash path has content available
  • Repository cleanup

    • Removed ForceDownload.patch
    • Updated README.md to describe the repo as ready-to-use rather than patch-based
  • Behavior

    • Invoke-DellBIOSUpdate.ps1 -Force remains paired with BIOS package download staging
    • The shared TS variable now enables both download and flash behavior without any out-of-band patching
Invoke-CMDownloadBIOSPackage.ps1 -BIOSUpdate -Endpoint "CM01.domain.com" -ForceDownload
Invoke-DellBIOSUpdate.ps1 -Force

vartaxe and others added 22 commits August 15, 2026 01:35
Re-enables the /f switch (previously removed in 1.0.9) so the BIOS
executable can be forced to run even when the version is already current.
This is required on newer Dell Pro / Dell S / Precision models that store
the BIOS recovery image on NVMe. After OSD reimaging the recovery image is
wiped and must be recreated by re-running the flash (Dell KB 000467636).

Also respects the TS variable SMSTSForceDellBIOSFlash=True.
Default behaviour remains without /f for safety.
When -ForceDownload is set (or TS vars SMSTSForceDellBIOSFlash / SMSTSForceBIOSDownload
are True), the matched BIOS package is downloaded even if the installed version is
already current. This stages the content required by Invoke-DellBIOSUpdate.ps1 -Force
so the NVMe BIOS recovery image can be recreated after OSD on newer Dell Pro/S/Precision
models (Dell KB 000467636).
When -ForceDownload is set (or TS vars SMSTSForceDellBIOSFlash / SMSTSForceBIOSDownload are True), the matched BIOS package is downloaded even if the installed version is already current. This stages the content required by Invoke-DellBIOSUpdate.ps1 -Force so the NVMe BIOS recovery image can be recreated after OSD on newer Dell Pro/S/Precision models (Dell KB 000467636).
… with ForceDownload)

Run: powershell -File ._Expand-DownloadScript.ps1
This writes the complete script (78KB) with -ForceDownload support.
…ckage.ps1 v3.0.5

Run JOIN_AND_EXPAND.ps1 once to write the full 78KB script with -ForceDownload.
…3.0.5 (-ForceDownload)

Run: powershell -File ._Expand-DownloadScript.ps1
This produces the complete 78 KB script with -ForceDownload support and TS variable handling for SMSTSForceDellBIOSFlash / SMSTSForceBIOSDownload.
After expansion, delete the helper. The resulting Invoke-CMDownloadBIOSPackage.ps1 is the deliverable for the PR.
…ckage.ps1 v3.0.5

1. Run: powershell -File JOIN_AND_EXPAND.ps1
2. This joins the parts into _Expand-DownloadScript.ps1 and expands the full 78KB script with -ForceDownload.
3. Delete the helper files afterwards.
The resulting Invoke-CMDownloadBIOSPackage.ps1 is the PR deliverable (plus the already-updated Invoke-DellBIOSUpdate.ps1).
…nload.patch so it applies cleanly

- Restored Invoke-CMDownloadBIOSPackage_Legacy.ps1 (unrelated deletion removed)
- Regenerated ForceDownload.patch with correct paths; verified it applies cleanly to upstream main and produces the exact v3.0.5 script with -ForceDownload
- Branch now contains only intentional feature changes + the reviewable patch
Co-authored-by: vartaxe <11176349+vartaxe@users.noreply.github.com>
Co-authored-by: vartaxe <11176349+vartaxe@users.noreply.github.com>
@vartaxe
vartaxe marked this pull request as ready for review August 15, 2026 01:43
Copilot AI lite review requested due to automatic review settings August 15, 2026 01:43
@vartaxe
vartaxe merged commit 3a07799 into main Aug 15, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request removes the external ForceDownload.patch workflow and makes Invoke-CMDownloadBIOSPackage.ps1 self-contained by adding native -ForceDownload handling (including task-sequence variable-based enablement) so BIOS package content can be staged even when the installed BIOS version is already current—supporting Dell recovery-image recreation scenarios after OSD.

Changes:

  • Added a -ForceDownload switch to Invoke-CMDownloadBIOSPackage.ps1 and logic to force content staging when BIOS is already current.
  • Enabled -ForceDownload automatically via TS variables (SMSTSForceDellBIOSFlash / SMSTSForceBIOSDownload) when the switch isn’t explicitly passed.
  • Removed ForceDownload.patch and updated README.md to document the repository as ready-to-use without patching.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
README.md Removes patch-application instructions and documents built-in -ForceDownload support.
Invoke-CMDownloadBIOSPackage.ps1 Implements -ForceDownload, TS-variable enablement, and forced staging behavior; bumps script version to 3.0.5.
ForceDownload.patch Deletes the now-unneeded patch file to make the repo self-contained.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vartaxe
vartaxe deleted the copilot/merge-patch-and-delete-unused-branch branch August 15, 2026 09:15
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.

3 participants