lorax: don't build EFI image

Qubes currently don't support EFI (because of xen 4.1) so do not include
not working EFI boot image.
This commit is contained in:
Marek Marczykowski-Górecki 2013-12-08 19:17:42 +01:00
parent 7a46b7e7dc
commit b6ace0cd2f

View File

@ -88,23 +88,23 @@ hardlink ${KERNELDIR}/initrd.img ${BOOTDIR}
%endif %endif
%endif %endif
## WHeeeeeeee, EFI. ## ## WHeeeeeeee, EFI.
## We could remove the basearch restriction someday.. ## ## We could remove the basearch restriction someday..
<% efiargs=""; efigraft=""; efihybrid="" %> ## <% efiargs=""; efigraft=""; efihybrid="" %>
%if exists("boot/efi/EFI/fedora/gcdx64.efi") and basearch != 'i386': ## %if exists("boot/efi/EFI/fedora/gcdx64.efi") and basearch != 'i386':
<% ## <%
efiarch = 'X64' if basearch=='x86_64' else 'IA32' ## efiarch = 'X64' if basearch=='x86_64' else 'IA32'
efigraft="EFI/BOOT={0}/EFI/BOOT".format(outroot) ## efigraft="EFI/BOOT={0}/EFI/BOOT".format(outroot)
images = ["images/efiboot.img"] ## images = ["images/efiboot.img"]
if domacboot: ## if domacboot:
images.append("images/macboot.img") ## images.append("images/macboot.img")
for img in images: ## for img in images:
efiargs += " -eltorito-alt-boot -e {0} -no-emul-boot".format(img) ## efiargs += " -eltorito-alt-boot -e {0} -no-emul-boot".format(img)
efigraft += " {0}={1}/{0}".format(img,outroot) ## efigraft += " {0}={1}/{0}".format(img,outroot)
efihybrid = "--uefi --mac" if domacboot else "--uefi" ## efihybrid = "--uefi --mac" if domacboot else "--uefi"
%> ## %>
<%include file="efi.tmpl" args="configdir=configdir, KERNELDIR=KERNELDIR, efiarch=efiarch, isolabel=isolabel"/> ## <%include file="efi.tmpl" args="configdir=configdir, KERNELDIR=KERNELDIR, efiarch=efiarch, isolabel=isolabel"/>
%endif ## %endif
## ## make boot.iso ## ## make boot.iso
## runcmd mkisofs -o ${outroot}/images/boot.iso \ ## runcmd mkisofs -o ${outroot}/images/boot.iso \