Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions WinImageBuilder.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,12 @@ function Create-BCDBootConfig {
$bcdbootPath = $bcdbootLocalPath
}

if ($diskLayout -eq "UEFI") {
# on newer WS 2025 builds BCDBoot copies the boot manager before creating its destination.
New-Item -Path "${systemDrive}\EFI\Microsoft\Boot" -ItemType Directory `
-Force -ErrorAction Stop | Out-Null
}

$ErrorActionPreference = "SilentlyContinue"
# Note: older versions of bcdboot.exe don't have a /f argument
if ($image.ImageVersion.Major -eq 6 -and $image.ImageVersion.Minor -lt 2) {
Expand Down
Loading