Skip to content

Commit 5b5713a

Browse files
committed
update
1 parent 2a62b8b commit 5b5713a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

internal/image/imageos/imageos.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -909,17 +909,20 @@ func buildImageUKI(installRoot string, template *config.ImageTemplate) error {
909909
log.Debugf("UKI created successfully on:", outputPath)
910910
log.Infof("Target architecture is %v ", template.Target.Arch)
911911

912+
srcBootloader := ""
913+
dstBootloader := ""
914+
912915
switch template.Target.Arch {
913916
case "amd64":
914917
log.Debugf("Target architecture is x86_64, proceeding with bootloader copy")
915918
// 3. Copy systemd-bootx64.efi to ESP/EFI/BOOT/BOOTX64.EFI
916-
srcBootloader := filepath.Join("usr", "lib", "systemd", "boot", "efi", "systemd-bootx64.efi")
917-
dstBootloader := filepath.Join(espDir, "EFI", "BOOT", "BOOTX64.EFI")
919+
srcBootloader = filepath.Join("usr", "lib", "systemd", "boot", "efi", "systemd-bootx64.efi")
920+
dstBootloader = filepath.Join(espDir, "EFI", "BOOT", "BOOTX64.EFI")
918921
case "arm64":
919922
log.Debugf("Target architecture is ARM64, proceeding with bootloader copy")
920923
// 3. Copy systemd-bootx64.efi to ESP/EFI/BOOT/BOOT64.EFI
921-
srcBootloader := filepath.Join("usr", "lib", "systemd", "boot", "efi", "systemd-bootaa64.efi")
922-
dstBootloader := filepath.Join(espDir, "EFI", "BOOT", "BOOTAA64.EFI")
924+
srcBootloader = filepath.Join("usr", "lib", "systemd", "boot", "efi", "systemd-bootaa64.efi")
925+
dstBootloader = filepath.Join(espDir, "EFI", "BOOT", "BOOTAA64.EFI")
923926
default:
924927
log.Infof("Skipping bootloader copy for architecture: %s", template.Target.Arch)
925928
return nil

0 commit comments

Comments
 (0)