Skip to content

Commit 46153cd

Browse files
committed
Another EFI stub string
1 parent d269585 commit 46153cd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

toolkit/tools/pkg/imagecustomizerlib/customizeuki.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,11 @@ func createUki(ctx context.Context, uki *imagecustomizerapi.Uki, buildDir string
307307

308308
var err error
309309

310+
_, bootConfig, err := getBootArchConfig()
311+
if err != nil {
312+
return err
313+
}
314+
310315
loopback, err := safeloopback.NewLoopback(buildImageFile)
311316
if err != nil {
312317
return fmt.Errorf("failed to connect to image file to provision UKI:\n%w", err)
@@ -342,7 +347,7 @@ func createUki(ctx context.Context, uki *imagecustomizerapi.Uki, buildDir string
342347
defer bootPartitionMount.Close()
343348

344349
osSubreleaseFullPath := filepath.Join(buildDir, UkiBuildDir, "os-release")
345-
stubPath := filepath.Join(buildDir, UkiBuildDir, "linuxx64.efi.stub")
350+
stubPath := filepath.Join(buildDir, UkiBuildDir, bootConfig.ukiEfiStubBinary)
346351
cmdlineFilePath := filepath.Join(buildDir, UkiBuildDir, KernelCmdlineArgsJson)
347352

348353
// Get mapped kernels and initramfs.

0 commit comments

Comments
 (0)