Skip to content

Commit 4a9c362

Browse files
committed
use bootConfig.ukiEfiStubBinaryPath in buildUki
1 parent 46153cd commit 4a9c362

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

toolkit/tools/pkg/imagecustomizerlib/customizeuki.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@ func createUki(ctx context.Context, uki *imagecustomizerapi.Uki, buildDir string
347347
defer bootPartitionMount.Close()
348348

349349
osSubreleaseFullPath := filepath.Join(buildDir, UkiBuildDir, "os-release")
350-
stubPath := filepath.Join(buildDir, UkiBuildDir, bootConfig.ukiEfiStubBinary)
351350
cmdlineFilePath := filepath.Join(buildDir, UkiBuildDir, KernelCmdlineArgsJson)
352351

353352
// Get mapped kernels and initramfs.
@@ -357,7 +356,7 @@ func createUki(ctx context.Context, uki *imagecustomizerapi.Uki, buildDir string
357356
}
358357

359358
for kernel, initramfs := range kernelToInitramfs {
360-
err := buildUki(kernel, initramfs, cmdlineFilePath, osSubreleaseFullPath, stubPath, buildDir,
359+
err := buildUki(kernel, initramfs, cmdlineFilePath, osSubreleaseFullPath, bootConfig.ukiEfiStubBinaryPath, buildDir,
361360
systemBootPartitionTmpDir,
362361
)
363362
if err != nil {

0 commit comments

Comments
 (0)