diff --git a/share/templates.d/99-generic/live/x86.tmpl b/share/templates.d/99-generic/live/x86.tmpl index c68cd136..211001a6 100644 --- a/share/templates.d/99-generic/live/x86.tmpl +++ b/share/templates.d/99-generic/live/x86.tmpl @@ -76,7 +76,7 @@ hardlink ${KERNELDIR}/initrd.img ${BOOTDIR} %if exists("boot/efi/EFI/*/gcdx64.efi"): <% efiarch64 = 'X64' %> %endif -%if efiarch32 or efiarch64: +%if efiarch32 or efiarch64 and basearch != 'i386': <% efigraft="EFI/BOOT={0}/EFI/BOOT".format(outroot) images = ["images/efiboot.img"] diff --git a/share/templates.d/99-generic/x86.tmpl b/share/templates.d/99-generic/x86.tmpl index ca23c377..0fd0bbfe 100644 --- a/share/templates.d/99-generic/x86.tmpl +++ b/share/templates.d/99-generic/x86.tmpl @@ -78,7 +78,7 @@ hardlink ${KERNELDIR}/initrd.img ${BOOTDIR} %if exists("boot/efi/EFI/*/gcdx64.efi"): <% efiarch64 = 'X64' %> %endif -%if efiarch32 or efiarch64: +%if efiarch32 or efiarch64 and basearch != 'i386': <% efigraft="EFI/BOOT={0}/EFI/BOOT".format(outroot) images = ["images/efiboot.img"]