Disable macboot.img on RHEL

This commit is contained in:
Daniel Mach 2012-05-09 12:27:20 +02:00 committed by Martin Gracik
parent 93b0654d25
commit 45ee5bf23b
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,27 @@
diff -Naur a/share/efi.tmpl b/share/efi.tmpl
--- a/share/efi.tmpl 2012-01-12 16:05:52.000000000 +0100
+++ b/share/efi.tmpl 2012-01-13 12:23:47.238239411 +0100
@@ -10,7 +10,6 @@
## actually make the EFI images
${make_efiboot("images/efiboot.img")}
-${make_efiboot("images/macboot.img", imgtype="apple")}
## This is kinda gross, but then... so's EFI.
<%def name="make_efiboot(img, include_kernel=False, disk=False, imgtype='default')">
diff -Naur a/share/x86.tmpl b/share/x86.tmpl
--- a/share/x86.tmpl 2012-01-12 16:05:52.000000000 +0100
+++ b/share/x86.tmpl 2012-01-13 14:10:04.168384841 +0100
@@ -53,10 +53,10 @@
<%
efiarch = 'X64' if basearch=='x86_64' else 'IA32'
efigraft="EFI/BOOT={0}/EFI/BOOT".format(outroot)
- for img in ("images/efiboot.img", "images/macboot.img"):
+ for img in ("images/efiboot.img", ):
efiargs += " -eltorito-alt-boot -e {0} -no-emul-boot".format(img)
efigraft += " {0}={1}/{0}".format(img,outroot)
- efihybrid="--uefi --mac"
+ efihybrid="--uefi"
%>
<%include file="efi.tmpl" args="configdir=configdir, KERNELDIR=KERNELDIR, efiarch=efiarch"/>
%endif

View File

@ -2,13 +2,14 @@
Name: lorax Name: lorax
Version: 17.18 Version: 17.18
Release: 1%{?dist} Release: 2%{?dist}
Summary: Tool for creating the anaconda install images Summary: Tool for creating the anaconda install images
Group: Applications/System Group: Applications/System
License: GPLv2+ License: GPLv2+
URL: http://git.fedorahosted.org/git/?p=lorax.git URL: http://git.fedorahosted.org/git/?p=lorax.git
Source0: https://fedorahosted.org/releases/l/o/%{name}/%{name}-%{version}.tar.bz2 Source0: https://fedorahosted.org/releases/l/o/%{name}/%{name}-%{version}.tar.bz2
Patch0: lorax-disable-macboot-img.patch
BuildRequires: python2-devel BuildRequires: python2-devel
Requires: python-mako Requires: python-mako
@ -57,6 +58,10 @@ Anaconda's image install feature.
%prep %prep
%setup -q %setup -q
# disable macboot.img on RHEL
%if 0%{?rhel}
%patch0 -p1
%endif
%build %build
@ -79,6 +84,9 @@ make DESTDIR=$RPM_BUILD_ROOT install
%changelog %changelog
* Wed May 09 2012 Daniel Mach <dmach@redhat.com> 17.18-2
- Disable macboot.img on RHEL
* Tue May 08 2012 Brian C. Lane <bcl@redhat.com> 17.18-1 * Tue May 08 2012 Brian C. Lane <bcl@redhat.com> 17.18-1
- stop moving /run (#818918) (bcl) - stop moving /run (#818918) (bcl)