Drop macboot.img and simplify efiboot.img use
Apple hardware doesn't need the macboot.img to boot, efiboot.img is not needed in the filesystem so do not graft it into it. Remove macboot.img and apple specific EFI support
This commit is contained in:
parent
12c0368018
commit
3ec83abf28
@ -21,9 +21,6 @@ install boot/grub2/fonts/unicode.pf2 ${EFIBOOTDIR}/fonts/
|
||||
|
||||
## actually make the EFI images
|
||||
${make_efiboot("images/efiboot.img")}
|
||||
%if domacboot:
|
||||
${make_efiboot("images/macboot.img", imgtype="apple")}
|
||||
%endif
|
||||
|
||||
## This is kinda gross, but then... so's EFI.
|
||||
<%def name="make_efiboot(img, include_kernel=False, disk=False, imgtype='default')">
|
||||
@ -32,7 +29,6 @@ ${make_efiboot("images/efiboot.img")}
|
||||
eficonf = "%s/grub.cfg" % (EFIBOOTDIR, )
|
||||
args = "--label=ANACONDA --debug"
|
||||
if disk: args += " --disk"
|
||||
if imgtype == "apple": args += ' --apple --icon=%s --diskname=%s --product="%s %s"' % (APPLE_EFI_ICON, APPLE_EFI_DISKNAME, product.name, product.version)
|
||||
%>
|
||||
%if include_kernel:
|
||||
copy ${KERNELDIR}/vmlinuz ${EFIBOOTDIR}
|
||||
|
@ -87,17 +87,7 @@ treeinfo images-${basearch} eltorito.img images/eltorito.img
|
||||
%if (efiarch32 or efiarch64) and basearch != 'i386':
|
||||
<%
|
||||
efigraft="EFI/BOOT={0}/EFI/BOOT".format(outroot)
|
||||
images = [("images/efiboot.img", "-isohybrid-gpt-basdat")]
|
||||
if domacboot:
|
||||
images.append(("images/macboot.img", "-isohybrid-gpt-hfsplus"))
|
||||
%>
|
||||
%for img, hybrid in images:
|
||||
<%
|
||||
efiargs += " --efi-boot {0} {1}".format(img, hybrid)
|
||||
efigraft += " {0}={1}/{0}".format(img,outroot)
|
||||
%>
|
||||
treeinfo images-${basearch} ${img|basename} ${img}
|
||||
%endfor
|
||||
<%include file="efi.tmpl" args="configdir=configdir, KERNELDIR=KERNELDIR, efiarch32=efiarch32, efiarch64=efiarch64, isolabel=isolabel"/>
|
||||
%endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user