From 08feb7c9ddbb71872b65d0f03d19d8eaf8979267 Mon Sep 17 00:00:00 2001 From: rbalsleyMSFT <53497092+rbalsleyMSFT@users.noreply.github.com> Date: Mon, 4 Aug 2025 18:34:26 -0700 Subject: [PATCH] Removes drivers.json file requirement for local drivers --- FFUDevelopment/BuildFFUVM.ps1 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/FFUDevelopment/BuildFFUVM.ps1 b/FFUDevelopment/BuildFFUVM.ps1 index b37c639..11812b7 100644 --- a/FFUDevelopment/BuildFFUVM.ps1 +++ b/FFUDevelopment/BuildFFUVM.ps1 @@ -3740,14 +3740,10 @@ if ($InstallDrivers -or $CopyDrivers) { throw "-InstallDrivers or -CopyDrivers is set to `$true, but the $DriversFolder folder is missing" } if ((Get-ChildItem -Path $DriversFolder -Recurse | Measure-Object -Property Length -Sum).Sum -lt 1MB) { - WriteLog "-InstallDrivers or -CopyDrivers is set to `$true, but the $DriversFolder folder is empty" - throw "-InstallDrivers or -CopyDrivers is set to `$true, but the $DriversFolder folder is empty" + WriteLog "-InstallDrivers or -CopyDrivers is set to `$true, but the $DriversFolder folder is empty, and no drivers are specified for download." + throw "-InstallDrivers or -CopyDrivers is set to `$true, but the $DriversFolder folder is empty, and no drivers are specified for download." } - if (!(Test-Path -Path $DriversJsonPath)) { - WriteLog "-InstallDrivers or -CopyDrivers is set to `$true, but the $DriversJsonPath file is missing" - throw "-InstallDrivers or -CopyDrivers is set to `$true, but the $DriversJsonPath file is missing" - } - WriteLog 'Driver validation complete' + WriteLog "Drivers folder found with content. Will use existing drivers." } } #Validate PEDrivers folder