4052477
%undefine _hardened_build
4052477
0e50f1f
# Modules always contain just 32-bit code
0e50f1f
%define _libdir %{_exec_prefix}/lib
0e50f1f
e046631
# 64bit intel machines use 32bit boot loader
0e50f1f
# (We cannot just redefine _target_cpu, as we'd get i386.rpm packages then)
0e50f1f
%ifarch x86_64
0e50f1f
%define _target_platform i386-%{_vendor}-%{_target_os}%{?_gnu}
0e50f1f
%endif
c95e580
# sparc is always compiled 64 bit
e046631
%ifarch %{sparc}
e046631
%define _target_platform sparc64-%{_vendor}-%{_target_os}%{?_gnu}
e046631
%endif
0e50f1f
95e479d
%if ! 0%{?efi}
8d4efa5
8c7f759
%global efi_only aarch64
8c7f759
%global efiarchs %{ix86} x86_64 ia64 %{efi_only}
8d4efa5
8d4efa5
%ifarch %{ix86}
8d4efa5
%global grubefiarch i386-efi
8d4efa5
%global grubefiname grubia32.efi
5d4d477
%global grubeficdname gcdia32.efi
8d4efa5
%endif
8d4efa5
%ifarch x86_64
8d4efa5
%global grubefiarch %{_arch}-efi
8d4efa5
%global grubefiname grubx64.efi
5d4d477
%global grubeficdname gcdx64.efi
95e479d
%endif
8c7f759
%ifarch aarch64
8c7f759
%global grubefiarch arm64-efi
8c7f759
%global grubefiname grubaa64.efi
8c7f759
%global grubeficdname gcdaa64.efi
8c7f759
%endif
95e479d
a3296c1
# Figure out the right file path to use
a3296c1
%global efidir %(eval echo $(grep ^ID= /etc/os-release | sed -e 's/^ID=//' -e 's/rhel/redhat/'))
28678c2
8d4efa5
%endif
58d787e
481bf3b
%global tarversion 2.02~beta2
28678c2
%undefine _missing_build_ids_terminate_build
28678c2
0e50f1f
Name:           grub2
e98789b
Epoch:          1
481bf3b
Version:        2.02
ea2871d
Release:        0.20%{?dist}
0e50f1f
Summary:        Bootloader with support for Linux, Multiboot and more
0e50f1f
0e50f1f
Group:          System Environment/Base
0e50f1f
License:        GPLv3+
0e50f1f
URL:            http://www.gnu.org/software/grub/
328405c
Obsoletes:	grub < 1:0.98
50b9a85
Source0:        ftp://alpha.gnu.org/gnu/grub/grub-%{tarversion}.tar.xz
481bf3b
#Source0:	ftp://ftp.gnu.org/gnu/grub/grub-%{tarversion}.tar.xz
f06903e
Source4:	http://unifoundry.com/unifont-5.1.20080820.pcf.gz
83183d5
Source5:	theme.tar.bz2
4dcaf21
Source6:	gitignore
78a3d7d
f4c76c0
# generate with:
f4c76c0
# git diff grub-2.02-beta2..origin/master
f4c76c0
Patch0000: grub-2.02-beta2-to-origin-master.patch
f4c76c0
f4c76c0
# generate all the patches after this with:
9074bf3
# git format-patch fedora-diff-from-here..fedora-23
f4c76c0
Patch0001: 0001-Migrate-PPC-from-Yaboot-to-Grub2.patch
f4c76c0
Patch0002: 0002-Add-fw_path-variable-revised.patch
f4c76c0
Patch0003: 0003-Add-support-for-linuxefi.patch
f4c76c0
Patch0004: 0004-Use-linuxefi-and-initrdefi-where-appropriate.patch
f4c76c0
Patch0005: 0005-Don-t-allow-insmod-when-secure-boot-is-enabled.patch
f4c76c0
Patch0006: 0006-Pass-x-hex-hex-straight-through-unmolested.patch
f4c76c0
Patch0007: 0007-Fix-crash-on-http.patch
f4c76c0
Patch0008: 0008-IBM-client-architecture-CAS-reboot-support.patch
f4c76c0
Patch0009: 0009-Add-vlan-tag-support.patch
f4c76c0
Patch0010: 0010-Add-X-option-to-printf-functions.patch
f4c76c0
Patch0011: 0011-DHCP-client-ID-and-UUID-options-added.patch
f4c76c0
Patch0012: 0012-Search-for-specific-config-file-for-netboot.patch
f4c76c0
Patch0013: 0013-blscfg-add-blscfg-module-to-parse-Boot-Loader-Specif.patch
f4c76c0
Patch0014: 0014-Move-bash-completion-script-922997.patch
f4c76c0
Patch0015: 0015-for-ppc-reset-console-display-attr-when-clear-screen.patch
f4c76c0
Patch0016: 0016-Don-t-write-messages-to-the-screen.patch
f4c76c0
Patch0017: 0017-Don-t-print-GNU-GRUB-header.patch
f4c76c0
Patch0018: 0018-Don-t-add-to-highlighted-row.patch
f4c76c0
Patch0019: 0019-Message-string-cleanups.patch
f4c76c0
Patch0020: 0020-Fix-border-spacing-now-that-we-aren-t-displaying-it.patch
f4c76c0
Patch0021: 0021-Use-the-correct-indentation-for-the-term-help-text.patch
f4c76c0
Patch0022: 0022-Indent-menu-entries.patch
f4c76c0
Patch0023: 0023-Fix-margins.patch
f4c76c0
Patch0024: 0024-Add-support-for-UEFI-operating-systems-returned-by-o.patch
f4c76c0
Patch0025: 0025-Disable-GRUB-video-support-for-IBM-power-machines.patch
f4c76c0
Patch0026: 0026-Use-2-instead-of-1-for-our-right-hand-margin-so-line.patch
f4c76c0
Patch0027: 0027-Use-linux16-when-appropriate-880840.patch
f4c76c0
Patch0028: 0028-Enable-pager-by-default.-985860.patch
f4c76c0
Patch0029: 0029-F10-doesn-t-work-on-serial-so-don-t-tell-the-user-to.patch
f4c76c0
Patch0030: 0030-Don-t-say-GNU-Linux-in-generated-menus.patch
f4c76c0
Patch0031: 0031-Don-t-draw-a-border-around-the-menu.patch
f4c76c0
Patch0032: 0032-Use-the-standard-margin-for-the-timeout-string.patch
f4c76c0
Patch0033: 0033-Fix-grub_script_execute_sourcecode-usage-on-ppc.patch
f4c76c0
Patch0034: 0034-Add-.eh_frame-to-list-of-relocations-stripped.patch
f4c76c0
Patch0035: 0035-Make-10_linux-work-with-our-changes-for-linux16-and-.patch
f4c76c0
Patch0036: 0036-Don-t-print-during-fdt-loading-method.patch
f4c76c0
Patch0037: 0037-Honor-a-symlink-when-generating-configuration-by-gru.patch
f4c76c0
Patch0038: 0038-Don-t-munge-raw-spaces-when-we-re-doing-our-cmdline-.patch
f4c76c0
Patch0039: 0039-Don-t-require-a-password-to-boot-entries-generated-b.patch
f4c76c0
Patch0040: 0040-Don-t-emit-Booting-.-message.patch
f4c76c0
Patch0041: 0041-Make-CTRL-and-ALT-keys-work-as-expected-on-EFI-syste.patch
f4c76c0
Patch0042: 0042-May-as-well-try-it.patch
f4c76c0
Patch0043: 0043-use-fw_path-prefix-when-fallback-searching-for-grub-.patch
f4c76c0
Patch0044: 0044-Try-mac-guid-etc-before-grub.cfg-on-tftp-config-file.patch
f4c76c0
Patch0045: 0045-trim-arp-packets-with-abnormal-size.patch
f4c76c0
Patch0046: 0046-Fix-convert-function-to-support-NVMe-devices.patch
f4c76c0
Patch0047: 0047-Fix-bad-test-on-GRUB_DISABLE_SUBMENU.patch
f4c76c0
Patch0048: 0048-Switch-to-use-APM-Mustang-device-tree-for-hardware-t.patch
f4c76c0
Patch0049: 0049-Use-the-default-device-tree-from-the-grub-default-fi.patch
f4c76c0
Patch0050: 0050-reopen-SNP-protocol-for-exclusive-use-by-grub.patch
f4c76c0
Patch0051: 0051-Reduce-timer-event-frequency-by-10.patch
f4c76c0
Patch0052: 0052-always-return-error-to-UEFI.patch
f4c76c0
Patch0053: 0053-Suport-for-bi-endianess-in-elf-file.patch
f4c76c0
Patch0054: 0054-Add-grub_util_readlink.patch
f4c76c0
Patch0055: 0055-Make-editenv-chase-symlinks-including-those-across-d.patch
f4c76c0
Patch0056: 0056-Generate-OS-and-CLASS-in-10_linux-from-etc-os-releas.patch
f4c76c0
Patch0057: 0057-Fix-GRUB_DISABLE_SUBMENU-one-more-time.patch
f4c76c0
Patch0058: 0058-Minimize-the-sort-ordering-for-.debug-and-rescue-ker.patch
f4c76c0
Patch0059: 0059-Add-GRUB_DISABLE_UUID.patch
f4c76c0
Patch0060: 0060-Allow-fallback-to-include-entries-by-title-not-just-.patch
f4c76c0
Patch0061: 0061-Load-arm-with-SB-enabled.patch
f4c76c0
Patch0062: 0062-Try-prefix-if-fw_path-doesn-t-work.patch
f4c76c0
Patch0063: 0063-Try-to-emit-linux16-initrd16-and-linuxefi-initrdefi-.patch
f4c76c0
Patch0064: 0064-Update-to-minilzo-2.08.patch
f4c76c0
Patch0065: 0065-Make-grub2-mkconfig-construct-titles-that-look-like-.patch
f4c76c0
Patch0066: 0066-Make-rescue-and-debug-entries-sort-right-again-in-gr.patch
f4c76c0
Patch0067: 0067-Make-.gitignore-suck-way-less.patch
f4c76c0
Patch0068: 0068-Update-info-with-grub.cfg-netboot-selection-order-11.patch
f4c76c0
Patch0069: 0069-Use-Distribution-Package-Sort-for-grub2-mkconfig-112.patch
f4c76c0
Patch0070: 0070-Add-friendly-grub2-password-config-tool-985962.patch
f4c76c0
Patch0071: 0071-Make-exit-take-a-return-code.patch
f4c76c0
Patch0072: 0072-Add-some-__unused__-where-gcc-5.x-is-more-picky-abou.patch
f4c76c0
Patch0073: 0073-Fix-race-in-EFI-validation.patch
f4c76c0
Patch0074: 0074-Mark-po-exclude.pot-as-binary-so-git-won-t-try-to-di.patch
f4c76c0
f4c76c0
ea2871d
ea2871d
f4c76c0
# And these are:
f4c76c0
# git checkout debuginfo
f4c76c0
# git format-patch fedora-23..
f4c76c0
Patch10001: 10001-Put-the-correct-.file-directives-in-our-.S-files.patch
f4c76c0
Patch10002: 10002-Make-efi-machines-load-an-env-block-from-a-variable.patch
f4c76c0
Patch10003: 10003-Make-it-possible-to-enabled-build-id-sha1.patch
f4c76c0
Patch10004: 10004-Don-t-tell-the-compiler-to-do-annoying-things-with-f.patch
f4c76c0
Patch10005: 10005-Add-grub_qdprintf-grub_dprintf-without-the-file-line.patch
f4c76c0
Patch10006: 10006-Make-a-gdb-dprintf-that-tells-us-load-addresses.patch
5206323
95e479d
BuildRequires:  flex bison binutils python
78a3d7d
BuildRequires:  ncurses-devel xz-devel bzip2-devel
5e0037e
BuildRequires:  freetype-devel libusb-devel
190143c
BuildRequires:	rpm-devel
4dcaf21
%ifarch %{sparc} x86_64 aarch64 ppc64le
c95e580
# sparc builds need 64 bit glibc-devel - also for 32 bit userland
cd7223a
BuildRequires:  /usr/lib64/crt1.o glibc-static
cd7223a
%else
c95e580
# ppc64 builds need the ppc crt1.o
cd7223a
BuildRequires:  /usr/lib/crt1.o glibc-static
cd7223a
%endif
1fcd613
BuildRequires:  autoconf automake autogen device-mapper-devel
1fcd613
BuildRequires:	freetype-devel gettext-devel git
b87b26e
BuildRequires:	texinfo
171aabb
BuildRequires:	dejavu-sans-fonts
William Jon McCann 909ac68
BuildRequires:	help2man
David Cantrell d38088e
%ifarch %{efiarchs}
8c7f759
%ifnarch aarch64
66cba4f
BuildRequires:	pesign >= 0.99-8
David Cantrell d38088e
%endif
8c7f759
%endif
0e50f1f
9d85b1d
Requires:	gettext which file
8273501
Requires:	%{name}-tools = %{epoch}:%{version}-%{release}
9d85b1d
Requires:	os-prober >= 1.58-11
a736a84
Requires(pre):  dracut
a736a84
Requires(post): dracut
0e50f1f
47b7f15
ExcludeArch:	s390 s390x %{arm}
8fc7297
Obsoletes:	grub2 <= 1:2.00-20%{?dist}
0e50f1f
0e50f1f
%description
95e479d
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
95e479d
bootloader with modular architecture.  It support rich varietyof kernel formats,
9ef0c08
file systems, computer architectures and hardware devices.  This subpackage
9ef0c08
provides support for PC BIOS systems.
95e479d
420dddc
%ifarch %{efiarchs}
95e479d
%package efi
95e479d
Summary:	GRUB for EFI systems.
95e479d
Group:		System Environment/Base
efff1af
Requires:	%{name}-tools = %{epoch}:%{version}-%{release}
8fc7297
Obsoletes:	grub2-efi <= 1:2.00-20%{?dist}
95e479d
95e479d
%description efi
95e479d
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
95e479d
bootloader with modular architecture.  It support rich varietyof kernel formats,
95e479d
file systems, computer architectures and hardware devices.  This subpackage
95e479d
provides support for EFI systems.
7d5b63a
7d5b63a
%package efi-modules
7d5b63a
Summary:	Modules used to build custom grub.efi images
7d5b63a
Group:		System Environment/Base
7d5b63a
Requires:	%{name}-tools = %{epoch}:%{version}-%{release}
7d5b63a
Obsoletes:	grub2-efi <= 1:2.00-20%{?dist}
7d5b63a
7d5b63a
%description efi-modules
7d5b63a
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
7d5b63a
bootloader with modular architecture.  It support rich varietyof kernel formats,
7d5b63a
file systems, computer architectures and hardware devices.  This subpackage
7d5b63a
provides support for rebuilding your own grub.efi on EFI systems.
95e479d
%endif
0e50f1f
9ef0c08
%package tools
9ef0c08
Summary:	Support tools for GRUB.
9ef0c08
Group:		System Environment/Base
9ef0c08
Requires:	gettext os-prober which file system-logos
9ef0c08
9ef0c08
%description tools
9ef0c08
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
9ef0c08
bootloader with modular architecture.  It support rich varietyof kernel formats,
9ef0c08
file systems, computer architectures and hardware devices.  This subpackage
9ef0c08
provides tools for support of all platforms.
9ef0c08
fa0bb1c
%package starfield-theme
fa0bb1c
Summary:	An example theme for GRUB.
fa0bb1c
Group:		System Environment/Base
fa0bb1c
Requires:	system-logos
8fc7297
Obsoletes:	grub2 <= 1:2.00-20%{?dist}
8fc7297
Obsoletes:	grub2-efi <= 1:2.00-20%{?dist}
fa0bb1c
fa0bb1c
%description starfield-theme
fa0bb1c
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
fa0bb1c
bootloader with modular architecture.  It support rich varietyof kernel formats,
fa0bb1c
file systems, computer architectures and hardware devices.  This subpackage
fa0bb1c
provides an example theme for the grub screen.
fa0bb1c
0e50f1f
%prep
28678c2
%setup -T -c -n grub-%{tarversion}
420dddc
%ifarch %{efiarchs}
28678c2
%setup -D -q -T -a 0 -n grub-%{tarversion}
28678c2
cd grub-%{tarversion}
f06903e
# place unifont in the '.' from which configure is run
f06903e
cp %{SOURCE4} unifont.pcf.gz
4dcaf21
cp %{SOURCE6} .gitignore
1fcd613
git init
b02c700
echo '![[:digit:]][[:digit:]]_*.in' > util/grub.d/.gitignore
b02c700
echo '!*.[[:digit:]]' > util/.gitignore
b02c700
git config user.email "%{name}-owner@fedoraproject.org"
1fcd613
git config user.name "Fedora Ninjas"
b02c700
git config gc.auto 0
1fcd613
git add .
28678c2
git commit -a -q -m "%{tarversion} baseline."
b02c700
git am %{patches} 
b02c700
git config --unset user.email
b02c700
git config --unset user.name
95e479d
cd ..
28678c2
mv grub-%{tarversion} grub-efi-%{tarversion}
95e479d
%endif
8c7f759
8c7f759
%ifarch %{efi_only}
8c7f759
ln -s grub-efi-%{tarversion} grub-%{tarversion}
8c7f759
%else
28678c2
%setup -D -q -T -a 0 -n grub-%{tarversion}
28678c2
cd grub-%{tarversion}
f06903e
# place unifont in the '.' from which configure is run
f06903e
cp %{SOURCE4} unifont.pcf.gz
4dcaf21
cp %{SOURCE6} .gitignore
95e479d
git init
b02c700
echo '![[:digit:]][[:digit:]]_*.in' > util/grub.d/.gitignore
b02c700
echo '!*.[[:digit:]]' > util/.gitignore
dea2713
git config user.email "%{name}-owner@fedoraproject.org"
95e479d
git config user.name "Fedora Ninjas"
dea2713
git config gc.auto 0
95e479d
git add .
28678c2
git commit -a -q -m "%{tarversion} baseline."
dea2713
git am %{patches} 
dea2713
git config --unset user.email
dea2713
git config --unset user.name
8c7f759
%endif
ca74990
0e50f1f
%build
420dddc
%ifarch %{efiarchs}
28678c2
cd grub-efi-%{tarversion}
95e479d
./autogen.sh
ee1d6da
%configure							\
ee1d6da
	CFLAGS="$(echo $RPM_OPT_FLAGS | sed			\
62a7c9b
		-e 's/-O.//g'					\
864f365
		-e 's/-fstack-protector[[:alpha:]-]\+//g'	\
ab37733
		-e 's/-Wp,-D_FORTIFY_SOURCE=[[:digit:]]\+//g'	\
ee1d6da
		-e 's/--param=ssp-buffer-size=4//g'		\
d5f7428
		-e 's/-mregparm=3/-mregparm=4/g'		\
ee1d6da
		-e 's/-fexceptions//g'				\
95e3ce4
		-e 's/-fasynchronous-unwind-tables//g'		\
864f365
		-e 's/^/ -fno-strict-aliasing /' )"		\
ee1d6da
	TARGET_LDFLAGS=-static					\
ee1d6da
        --with-platform=efi					\
6092ed7
	--with-grubdir=%{name}					\
1d74d59
        --program-transform-name=s,grub,%{name},		\
31004e6
	--disable-grub-mount					\
f06903e
	--disable-werror
95e479d
make %{?_smp_mflags}
84fdd02
497ed2e
GRUB_MODULES="	all_video boot btrfs cat chain configfile echo \
58fe9aa
		efifwsetup efinet ext2 fat font gfxmenu gfxterm gzio halt \
e44ede5
		hfsplus iso9660 jpeg loadenv loopback lvm mdraid09 mdraid1x \
e44ede5
		minicmd normal part_apple part_msdos part_gpt \
e44ede5
		password_pbkdf2 png \
58fe9aa
		reboot search search_fs_uuid search_fs_file search_label \
497ed2e
		serial sleep syslinuxcfg test tftp video xfs"
8c7f759
%ifarch aarch64
497ed2e
GRUB_MODULES+=" linux "
8c7f759
%else
497ed2e
GRUB_MODULES+=" backtrace usb usbserial_common "
497ed2e
GRUB_MODULES+=" usbserial_pl2303 usbserial_ftdi usbserial_usbdebug "
497ed2e
GRUB_MODULES+=" linuxefi multiboot2 multiboot "
8c7f759
%endif
8c7f759
./grub-mkimage -O %{grubefiarch} -o %{grubefiname}.orig -p /EFI/%{efidir} \
8c7f759
		-d grub-core ${GRUB_MODULES}
58fe9aa
./grub-mkimage -O %{grubefiarch} -o %{grubeficdname}.orig -p /EFI/BOOT \
58fe9aa
		-d grub-core ${GRUB_MODULES}
8c7f759
%ifarch aarch64
8c7f759
mv %{grubefiname}.orig %{grubefiname}
58fe9aa
mv %{grubeficdname}.orig %{grubeficdname}
8c7f759
%else
31004e6
%pesign -s -i %{grubeficdname}.orig -o %{grubeficdname}
31004e6
%pesign -s -i %{grubefiname}.orig -o %{grubefiname}
8c7f759
%endif
95e479d
cd ..
95e479d
%endif
95e479d
28678c2
cd grub-%{tarversion}
8c7f759
%ifnarch %{efi_only}
95e479d
./autogen.sh
0e50f1f
# -static is needed so that autoconf script is able to link
0e50f1f
# test that looks for _start symbol on 64 bit platforms
4dcaf21
%ifarch %{sparc} ppc ppc64 ppc64le
28678c2
%define platform ieee1275
e046631
%else
28678c2
%define platform pc
e046631
%endif
ee1d6da
%configure							\
ee1d6da
	CFLAGS="$(echo $RPM_OPT_FLAGS | sed			\
645dc62
		-e 's/-O.//g'					\
864f365
		-e 's/-fstack-protector[[:alpha:]-]\+//g'	\
ab37733
		-e 's/-Wp,-D_FORTIFY_SOURCE=[[:digit:]]\+//g'	\
ee1d6da
		-e 's/--param=ssp-buffer-size=4//g'		\
d5f7428
		-e 's/-mregparm=3/-mregparm=4/g'		\
ee1d6da
		-e 's/-fexceptions//g'				\
ee1d6da
		-e 's/-m64//g'					\
95e3ce4
		-e 's/-fasynchronous-unwind-tables//g'		\
95e3ce4
		-e 's/-mcpu=power7/-mcpu=power6/g'		\
864f365
		-e 's/^/ -fno-strict-aliasing /' )"		\
ee1d6da
	TARGET_LDFLAGS=-static					\
28678c2
        --with-platform=%{platform}				\
6092ed7
	--with-grubdir=%{name}					\
ee1d6da
        --program-transform-name=s,grub,%{name},		\
31004e6
	--disable-grub-mount					\
f06903e
	--disable-werror
0e50f1f
e046631
make %{?_smp_mflags}
8c7f759
%endif
0e50f1f
ee18b8d
sed -i -e 's,(grub),(%{name}),g' \
ee18b8d
	-e 's,grub.info,%{name}.info,g' \
ee18b8d
	-e 's,\* GRUB:,* GRUB2:,g' \
51c2ea7
	-e 's,/boot/grub/,/boot/%{name}/,g' \
0f31deb
	-e 's,\([^-]\)grub-\([a-z]\),\1%{name}-\2,g' \
ee18b8d
	docs/grub.info
ee18b8d
sed -i -e 's,grub-dev,%{name}-dev,g' docs/grub-dev.info
ee18b8d
0f31deb
/usr/bin/makeinfo --html --no-split -I docs -o grub-dev.html docs/grub-dev.texi
0f31deb
/usr/bin/makeinfo --html --no-split -I docs -o grub.html docs/grub.texi
0f31deb
sed -i	-e 's,/boot/grub/,/boot/%{name}/,g' \
0f31deb
	-e 's,\([^-]\)grub-\([a-z]\),\1%{name}-\2,g' \
0f31deb
	grub.html
0f31deb
0e50f1f
%install
0e50f1f
set -e
0e50f1f
rm -fr $RPM_BUILD_ROOT
95e479d
420dddc
%ifarch %{efiarchs}
28678c2
cd grub-efi-%{tarversion}
95e479d
make DESTDIR=$RPM_BUILD_ROOT install
c849461
find $RPM_BUILD_ROOT -iname "*.module" -exec chmod a-x {} \;
95e479d
95e479d
# Ghost config file
8d4efa5
install -m 755 -d $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/
8d4efa5
touch $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/grub.cfg
8d4efa5
ln -s ../boot/efi/EFI/%{efidir}/grub.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-efi.cfg
95e479d
8d4efa5
install -m 755 %{grubefiname} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{grubefiname}
5d4d477
install -m 755 %{grubeficdname} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{grubeficdname}
58a808c
install -D -m 644 unicode.pf2 $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/fonts/unicode.pf2
95e479d
cd ..
95e479d
%endif
95e479d
28678c2
cd grub-%{tarversion}
8c7f759
%ifnarch %{efi_only}
0e50f1f
make DESTDIR=$RPM_BUILD_ROOT install
0e50f1f
0e50f1f
# Ghost config file
0e50f1f
install -d $RPM_BUILD_ROOT/boot/%{name}
0e50f1f
touch $RPM_BUILD_ROOT/boot/%{name}/grub.cfg
0e50f1f
ln -s ../boot/%{name}/grub.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.cfg
8c7f759
%endif
0e50f1f
William Jon McCann 6c7b1ed
cp -a $RPM_BUILD_ROOT%{_datarootdir}/locale/en\@quot $RPM_BUILD_ROOT%{_datarootdir}/locale/en
William Jon McCann 6c7b1ed
6092ed7
mv $RPM_BUILD_ROOT%{_infodir}/grub.info $RPM_BUILD_ROOT%{_infodir}/%{name}.info
6092ed7
mv $RPM_BUILD_ROOT%{_infodir}/grub-dev.info $RPM_BUILD_ROOT%{_infodir}/%{name}-dev.info
1fcd613
rm $RPM_BUILD_ROOT%{_infodir}/dir
1fcd613
0e50f1f
# Defaults
8d4efa5
mkdir ${RPM_BUILD_ROOT}%{_sysconfdir}/default
8d4efa5
touch ${RPM_BUILD_ROOT}%{_sysconfdir}/default/grub
62a7c9b
mkdir ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
62a7c9b
ln -sf %{_sysconfdir}/default/grub \
62a7c9b
	${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/grub
62a7c9b
72b5f59
cd ..
72b5f59
%find_lang grub
72b5f59
171aabb
# Fedora theme in /boot/grub2/themes/system/
83183d5
cd $RPM_BUILD_ROOT
83183d5
tar xjf %{SOURCE5}
171aabb
$RPM_BUILD_ROOT%{_bindir}/%{name}-mkfont -o boot/grub2/themes/system/DejaVuSans-10.pf2      -s 10 /usr/share/fonts/dejavu/DejaVuSans.ttf # "DejaVu Sans Regular 10"
171aabb
$RPM_BUILD_ROOT%{_bindir}/%{name}-mkfont -o boot/grub2/themes/system/DejaVuSans-12.pf2      -s 12 /usr/share/fonts/dejavu/DejaVuSans.ttf # "DejaVu Sans Regular 12"
171aabb
$RPM_BUILD_ROOT%{_bindir}/%{name}-mkfont -o boot/grub2/themes/system/DejaVuSans-Bold-14.pf2 -s 14 /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf # "DejaVu Sans Bold 14"
83183d5
5d4d477
# Make selinux happy with exec stack binaries.
5d4d477
mkdir ${RPM_BUILD_ROOT}%{_sysconfdir}/prelink.conf.d/
5d4d477
cat << EOF > ${RPM_BUILD_ROOT}%{_sysconfdir}/prelink.conf.d/grub2.conf
5d4d477
# these have execstack, and break under selinux
5d4d477
-b /usr/bin/grub2-script-check
5d4d477
-b /usr/bin/grub2-mkrelpath
5d4d477
-b /usr/bin/grub2-fstest
5d4d477
-b /usr/sbin/grub2-bios-setup
5d4d477
-b /usr/sbin/grub2-probe
5d4d477
-b /usr/sbin/grub2-sparc64-setup
5d4d477
EOF
5d4d477
9ccddf4
%ifarch %{efiarchs}
9ccddf4
mkdir -p boot/efi/EFI/%{efidir}/
9ccddf4
ln -s /boot/efi/EFI/%{efidir}/grubenv boot/grub2/grubenv
9ccddf4
%endif
9ccddf4
ee7733c
# Don't run debuginfo on all the grub modules and whatnot; it just
ee7733c
# rejects them, complains, and slows down extraction.
ee7733c
%global finddebugroot "%{_builddir}/%{?buildsubdir}/debug"
ee7733c
mkdir -p %{finddebugroot}/usr
ee7733c
cp -a ${RPM_BUILD_ROOT}/usr/bin %{finddebugroot}/usr/bin
ee7733c
cp -a ${RPM_BUILD_ROOT}/usr/sbin %{finddebugroot}/usr/sbin
ee7733c
ee7733c
%global dip RPM_BUILD_ROOT=%{finddebugroot} %{__debug_install_post}
767f985
%define __debug_install_post ( %{dip}					\
ee7733c
	install -m 0755 -d %{buildroot}/usr/lib/ %{buildroot}/usr/src/	\
ee7733c
	cp -al %{finddebugroot}/usr/lib/debug/				\\\
ee7733c
		%{buildroot}/usr/lib/debug/				\
ee7733c
	cp -al %{finddebugroot}/usr/src/debug/				\\\
767f985
		%{buildroot}/usr/src/debug/ )
ee7733c
0e50f1f
%clean    
0e50f1f
rm -rf $RPM_BUILD_ROOT
0e50f1f
767f985
%post tools
1fcd613
if [ "$1" = 1 ]; then
6092ed7
	/sbin/install-info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz || :
6092ed7
	/sbin/install-info --info-dir=%{_infodir} %{_infodir}/%{name}-dev.info.gz || :
1fcd613
fi
0e50f1f
e376009
%triggerun -- grub2 < 1:1.99-4
eb5089f
# grub2 < 1.99-4 removed a number of essential files in postun. To fix upgrades
eb5089f
# from the affected grub2 packages, we first back up the files in triggerun and
eb5089f
# later restore them in triggerpostun.
eb5089f
# https://bugzilla.redhat.com/show_bug.cgi?id=735259
e376009
eb5089f
# Back up the files before uninstalling old grub2
eb5089f
mkdir -p /boot/grub2.tmp &&
1156d47
mv -f /boot/grub2/*.mod \
eb5089f
      /boot/grub2/*.img \
eb5089f
      /boot/grub2/*.lst \
eb5089f
      /boot/grub2/device.map \
eb5089f
      /boot/grub2.tmp/ || :
eb5089f
eb5089f
%triggerpostun -- grub2 < 1:1.99-4
eb5089f
# ... and restore the files.
eb5089f
test ! -f /boot/grub2/device.map &&
eb5089f
test -d /boot/grub2.tmp &&
eb5089f
mv -f /boot/grub2.tmp/*.mod \
eb5089f
      /boot/grub2.tmp/*.img \
eb5089f
      /boot/grub2.tmp/*.lst \
eb5089f
      /boot/grub2.tmp/device.map \
eb5089f
      /boot/grub2/ &&
eb5089f
rm -r /boot/grub2.tmp/ || :
eb5089f
767f985
%preun tools
1fcd613
if [ "$1" = 0 ]; then
6092ed7
	/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz || :
6092ed7
	/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/%{name}-dev.info.gz || :
1fcd613
fi
0e50f1f
8c7f759
%ifnarch %{efi_only}
72b5f59
%files -f grub.lang
0e50f1f
%defattr(-,root,root,-)
28678c2
%{_libdir}/grub/*-%{platform}/
21f0c0b
%config(noreplace) %{_sysconfdir}/%{name}.cfg
bf4e2d2
%ghost %config(noreplace) /boot/%{name}/grub.cfg
9ef0c08
%doc grub-%{tarversion}/COPYING
9ccddf4
%config(noreplace) %ghost /boot/grub2/grubenv
8c7f759
%endif
0e50f1f
420dddc
%ifarch %{efiarchs}
9ef0c08
%files efi
95e479d
%defattr(-,root,root,-)
9ef0c08
%config(noreplace) %{_sysconfdir}/%{name}-efi.cfg
8d4efa5
%attr(0755,root,root)/boot/efi/EFI/%{efidir}
58a808c
%attr(0755,root,root)/boot/efi/EFI/%{efidir}/fonts
8d4efa5
%ghost %config(noreplace) /boot/efi/EFI/%{efidir}/grub.cfg
9ef0c08
%doc grub-%{tarversion}/COPYING
9ccddf4
/boot/grub2/grubenv
9ccddf4
# I know 0700 seems strange, but it lives on FAT so that's what it'll
9ccddf4
# get no matter what we do.
9ccddf4
%config(noreplace) %ghost %attr(0700,root,root)/boot/efi/EFI/%{efidir}/grubenv
7d5b63a
7d5b63a
%files efi-modules
7d5b63a
%defattr(-,root,root,-)
7d5b63a
%{_libdir}/grub/%{grubefiarch}
9ef0c08
%endif
9ef0c08
9ef0c08
%files tools -f grub.lang
9ef0c08
%defattr(-,root,root,-)
9ef0c08
%dir %{_libdir}/grub/
3c1bb2b
%dir %{_datarootdir}/grub/
3c1bb2b
%dir %{_datarootdir}/grub/themes
fa0bb1c
%{_datarootdir}/grub/*
481bf3b
%{_sbindir}/%{name}-bios-setup
f06903e
%{_sbindir}/%{name}-install
481bf3b
%{_sbindir}/%{name}-macbless
481bf3b
%{_sbindir}/%{name}-mkconfig
481bf3b
%{_sbindir}/%{name}-ofpathname
f06903e
%{_sbindir}/%{name}-probe
f06903e
%{_sbindir}/%{name}-reboot
f4c76c0
%{_sbindir}/%{name}-rpm-sort
f06903e
%{_sbindir}/%{name}-set-default
f4c76c0
%{_sbindir}/%{name}-setpassword
f06903e
%{_sbindir}/%{name}-sparc64-setup
0e50f1f
%{_bindir}/%{name}-editenv
481bf3b
%{_bindir}/%{name}-file
a72f2be
%{_bindir}/%{name}-fstest
481bf3b
%{_bindir}/%{name}-glue-efi
1fcd613
%{_bindir}/%{name}-kbdcomp
1fcd613
%{_bindir}/%{name}-menulst2cfg
a72f2be
%{_bindir}/%{name}-mkfont
1fcd613
%{_bindir}/%{name}-mkimage
481bf3b
%{_bindir}/%{name}-mklayout
481bf3b
%{_bindir}/%{name}-mknetdir
692a778
%{_bindir}/%{name}-mkpasswd-pbkdf2
692a778
%{_bindir}/%{name}-mkrelpath
34399bb
%ifnarch %{sparc}
a72f2be
%{_bindir}/%{name}-mkrescue
34399bb
%endif
481bf3b
%{_bindir}/%{name}-mkstandalone
481bf3b
%{_bindir}/%{name}-render-label
1fcd613
%{_bindir}/%{name}-script-check
481bf3b
%{_bindir}/%{name}-syslinux2cfg
3801bfd
%{_datarootdir}/bash-completion/completions/grub
5d4d477
%{_sysconfdir}/prelink.conf.d/grub2.conf
afddf87
%attr(0700,root,root) %dir %{_sysconfdir}/grub.d
0e50f1f
%config %{_sysconfdir}/grub.d/??_*
0e50f1f
%{_sysconfdir}/grub.d/README
d9c0e66
%attr(0644,root,root) %ghost %config(noreplace) %{_sysconfdir}/default/grub
62a7c9b
%{_sysconfdir}/sysconfig/grub
0e50f1f
%dir /boot/%{name}
ab71b4d
%dir /boot/%{name}/themes/
ab71b4d
%dir /boot/%{name}/themes/system
ab71b4d
%exclude /boot/%{name}/themes/system/*
ab71b4d
%exclude %{_datarootdir}/grub/themes/
9ef0c08
%{_infodir}/%{name}*
d1197b4
%{_datadir}/man/man?/*
28678c2
%doc grub-%{tarversion}/COPYING grub-%{tarversion}/INSTALL
28678c2
%doc grub-%{tarversion}/NEWS grub-%{tarversion}/README
28678c2
%doc grub-%{tarversion}/THANKS grub-%{tarversion}/TODO
0f31deb
%doc grub-%{tarversion}/grub.html
0f31deb
%doc grub-%{tarversion}/grub-dev.html grub-%{tarversion}/docs/font_char_metrics.png
171aabb
%doc grub-%{tarversion}/themes/starfield/COPYING.CC-BY-SA-3.0
95e479d
fa0bb1c
%files starfield-theme
ab71b4d
%dir /boot/%{name}/themes/
767f985
/boot/%{name}/themes/system
ab71b4d
%dir %{_datarootdir}/grub/themes
767f985
%{_datarootdir}/grub/themes/starfield
fa0bb1c
0e50f1f
%changelog
ea2871d
* Mon Aug 03 2015 Peter Jones <pjones@redhat.com> - 2.02-0.20
ea2871d
- The previous fix was completely not right, so fix it a different way.
ea2871d
  Resolves: rhbz#1249668
ea2871d
Robert Marshall 7b98965
* Fri Jul 31 2015 Peter Jones <pjones@redhat.com> - 2.02-0.19
Robert Marshall 7b98965
- Fix grub2-mkconfig's sort to put kernels in the right order.
Robert Marshall 7b98965
  Related: rhbz#1124074
Robert Marshall 7b98965
8facaba
* Thu Jul 30 2015 Peter Jones <pjones@redhat.com> - 2.02-0.18
8facaba
- Fix a build failure on aarch64
8facaba
f4c76c0
* Wed Jul 22 2015 Peter Jones <pjones@redhat.com> - 2.02-0.17
f4c76c0
- Don't build hardened (fixes FTBFS) (pbrobinson)
f4c76c0
- Reconcile with the current upstream
f4c76c0
- Fixes for gcc 5
4052477
d1197b4
* Tue Apr 28 2015 Peter Jones <pjones@redhat.com> - 2.02-0.16
d1197b4
- Make grub2-mkconfig produce the kernel titles we actually want.
d1197b4
  Resolves: rhbz#1215839
d1197b4
d1197b4
* Sat Feb 21 2015 Till Maas <opensource@till.name>
ac484fe
- Rebuilt for Fedora 23 Change
ac484fe
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
ac484fe
eb2c2e6
* Mon Jan 05 2015 Peter Jones <pjones@redhat.com> - 2.02-0.15
eb2c2e6
- Bump release to rebuild with Ralf Corsépius's fixes.
eb2c2e6
767f985
* Sun Jan 04 2015 Ralf Corsépius <corsepiu@fedoraproject.org> - 2.02-0.14
767f985
- Move grub2.info/grub2-dev.info install-info scriptlets into *-tools package.
767f985
- Use sub-shell in %%__debug_install_post (RHBZ#1168732).
767f985
- Cleanup grub2-starfield-theme packaging.
767f985
87ae4b9
* Thu Dec 04 2014 Peter Jones <pjones@redhat.com> - 2.02-0.13
87ae4b9
- Update minilzo to 2.08 for CVE-2014-4607
87ae4b9
  Resolves: rhbz#1131793
87ae4b9
497ed2e
* Thu Nov 13 2014 Peter Jones <pjones@redhat.com> - 2.02-0.12
497ed2e
- Make backtrace and usb conditional on !arm
497ed2e
- Make sure gcdaa64.efi is packaged.
497ed2e
  Resolves: rhbz#1163481
497ed2e
dea2713
* Fri Nov 07 2014 Peter Jones <pjones@redhat.com> - 2.02-0.11
dea2713
- fix a copy-paste error in patch 0154.
dea2713
  Resolves: rhbz#964828
dea2713
9d85b1d
* Mon Oct 27 2014 Peter Jones <pjones@redhat.com> - 2.02-0.10
9d85b1d
- Try to emit linux16/initrd16 and linuxefi/initrdefi when appropriate
9d85b1d
  in 30_os-prober.
9d85b1d
  Resolves: rhbz#1108296
9d85b1d
- If $fw_path doesn't work to find the config file, try $prefix as well
9d85b1d
  Resolves: rhbz#1148652
9d85b1d
58fe9aa
* Mon Sep 29 2014 Peter Jones <pjones@redhat.com> - 2.02-0.9
58fe9aa
- Clean up the build a bit to make it faster
58fe9aa
- Make grubenv work right on UEFI machines
58fe9aa
  Related: rhbz#1119943
58fe9aa
- Sort debug and rescue kernels later than normal ones
58fe9aa
  Related: rhbz#1065360
58fe9aa
- Allow "fallback" to include entries by title as well as number.
58fe9aa
  Related: rhbz#1026084
58fe9aa
- Fix a segfault on aarch64.
58fe9aa
- Load arm with SB enabled if available.
58fe9aa
- Add some serial port options to GRUB_MODULES.
58fe9aa
4dcaf21
* Tue Aug 19 2014 Peter Jones <pjones@redhat.com> - 2.02-0.8
4dcaf21
- Add ppc64le support.
4dcaf21
  Resolves: rhbz#1125540
4dcaf21
bcda470
* Thu Jul 24 2014 Peter Jones <pjones@redhat.com> - 2.02-0.7
bcda470
- Enabled syslinuxcfg module.
bcda470
37b39b7
* Wed Jul 02 2014 Peter Jones <pjones@redhat.com> - 2.02-0.6
37b39b7
- Re-merge RHEL 7 changes and ARM works in progress.
37b39b7
f178927
* Mon Jun 30 2014 Peter Jones <pjones@redhat.com> - 2.02-0.5
f178927
- Avoid munging raw spaces when we're escaping command line arguments.
f178927
  Resolves: rhbz#923374
f178927
011fe81
* Tue Jun 24 2014 Peter Jones <pjones@redhat.com> - 2.02-0.4
011fe81
- Update to latest upstream.
011fe81
78a3d7d
* Thu Mar 13 2014 Peter Jones <pjones@redhat.com> - 2.02-0.3
78a3d7d
- Merge in RHEL 7 changes and ARM works in progress.
78a3d7d
481bf3b
* Mon Jan 06 2014 Peter Jones <pjones@redhat.com> - 2.02-0.2
481bf3b
- Update to grub-2.02~beta2
481bf3b
39307a8
* Sat Aug 10 2013 Peter Jones <pjones@redhat.com> - 2.00-25
39307a8
- Last build failed because of a hardware error on the builder.
39307a8
739a291
* Mon Aug 05 2013 Peter Jones <pjones@redhat.com> - 2.00-24
739a291
- Fix compiler flags to deal with -fstack-protector-strong
739a291
54c6370
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.00-24
54c6370
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
54c6370
d0b05a7
* Tue Jul 02 2013 Dennis Gilmore <dennis@ausil.us> - 2.00-23
4a42f9b
- add epoch to obsoletes
4a42f9b
9546739
* Fri Jun 21 2013 Peter Jones <pjones@redhat.com> - 2.00-22
38f72d2
- Fix linewrapping in edit menu.
38f72d2
  Resolves: rhbz #976643
38f72d2
9c5e36d
* Thu Jun 20 2013 Peter Jones <pjones@redhat.com> - 2.00-21
9c5e36d
- Fix obsoletes to pull in -starfield-theme subpackage when it should.
9c5e36d
ab71b4d
* Fri Jun 14 2013 Peter Jones <pjones@redhat.com> - 2.00-20
ab71b4d
- Put the theme entirely ento the subpackage where it belongs (#974667)
ab71b4d
f74b50e
* Wed Jun 12 2013 Peter Jones <pjones@redhat.com> - 2.00-19
31004e6
- Rebase to upstream snapshot.
f74b50e
- Fix PPC build error (#967862)
f74b50e
- Fix crash on net_bootp command (#960624)
f74b50e
- Reset colors on ppc when appropriate (#908519)
f74b50e
- Left align "Loading..." messages (#908492)
f74b50e
- Fix probing of SAS disks on PPC (#953954)
f74b50e
- Add support for UEFI OSes returned by os-prober
f74b50e
- Disable "video" mode on PPC for now (#973205)
f74b50e
- Make grub fit better into the boot sequence, visually (#966719)
31004e6
fa0bb1c
* Fri May 10 2013 Matthias Clasen <mclasen@redhat.com> - 2.00-18
fa0bb1c
- Move the starfield theme to a subpackage (#962004)
ed8842a
- Don't allow SSE or MMX on UEFI builds (#949761)
fa0bb1c
a5bd9f6
* Wed Apr 24 2013 Peter Jones <pjones@redhat.com> - 2.00-17.pj0
a5bd9f6
- Rebase to upstream snapshot.
a5bd9f6
50b8f8e
* Thu Apr 04 2013 Peter Jones <pjones@redhat.com> - 2.00-17
3ad78fd
- Fix booting from drives with 4k sectors on UEFI.
50b8f8e
- Move bash completion to new location (#922997)
50b8f8e
- Include lvm support for /boot (#906203)
3ad78fd
56aa737
* Thu Feb 14 2013 Peter Jones <pjones@redhat.com> - 2.00-16
56aa737
- Allow the user to disable submenu generation
56aa737
- (partially) support BLS-style configuration stanzas.
56aa737
2ea29c3
* Tue Feb 12 2013 Peter Jones <pjones@redhat.com> - 2.00-15.pj0
2ea29c3
- Add various config file related changes.
2ea29c3
d86e0a2
* Thu Dec 20 2012 Dennis Gilmore <dennis@ausil.us> - 2.00-15
d86e0a2
- bump nvr
d86e0a2
83401c6
* Mon Dec 17 2012 Karsten Hopp <karsten@redhat.com> 2.00-14
83401c6
- add bootpath device to the device list (pfsmorigo, #886685)
83401c6
5e0db24
* Tue Nov 27 2012 Peter Jones <pjones@redhat.com> - 2.00-13
5e0db24
- Add vlan tag support (pfsmorigo, #871563)
5e0db24
- Follow symlinks during PReP installation in grub2-install (pfsmorigo, #874234)
5e0db24
- Improve search paths for config files on network boot (pfsmorigo, #873406)
5e0db24
4788033
* Tue Oct 23 2012 Peter Jones <pjones@redhat.com> - 2.00-12
4788033
- Don't load modules when grub transitions to "normal" mode on UEFI.
4788033
5598b7f
* Mon Oct 22 2012 Peter Jones <pjones@redhat.com> - 2.00-11
66cba4f
- Rebuild with newer pesign so we'll get signed with the final signing keys.
66cba4f
f2e5630
* Thu Oct 18 2012 Peter Jones <pjones@redhat.com> - 2.00-10
f2e5630
- Various PPC fixes.
f2e5630
- Fix crash fetching from http (gustavold, #860834)
f2e5630
- Issue separate dns queries for ipv4 and ipv6 (gustavold, #860829)
f2e5630
- Support IBM CAS reboot (pfsmorigo, #859223)
f2e5630
- Include all modules in the core image on ppc (pfsmorigo, #866559)
f2e5630
c849461
* Mon Oct 01 2012 Peter Jones <pjones@redhat.com> - 1:2.00-9
c849461
- Work around bug with using "\x20" in linux command line.
c849461
  Related: rhbz#855849
c849461
9d78483
* Thu Sep 20 2012 Peter Jones <pjones@redhat.com> - 2.00-8
9d78483
- Don't error on insmod on UEFI/SB, but also don't do any insmodding.
9d78483
- Increase device path size for ieee1275
9d78483
  Resolves: rhbz#857936
9d78483
- Make network booting work on ieee1275 machines.
9d78483
  Resolves: rhbz#857936
9d78483
Matthew Garrett 62fd5b9
* Wed Sep 05 2012 Matthew Garrett <mjg@redhat.com> - 2.00-7
Matthew Garrett 62fd5b9
- Add Apple partition map support for EFI
Matthew Garrett 62fd5b9
David Cantrell d38088e
* Thu Aug 23 2012 David Cantrell <dcantrell@redhat.com> - 2.00-6
David Cantrell d38088e
- Only require pesign on EFI architectures (#851215)
David Cantrell d38088e
f742f42
* Tue Aug 14 2012 Peter Jones <pjones@redhat.com> - 2.00-5
c1a25d0
- Work around AHCI firmware bug in efidisk driver.
f742f42
- Move to newer pesign macros
f742f42
- Don't allow insmod if we're in secure-boot mode.
f742f42
5d4d477
* Wed Aug 08 2012 Peter Jones <pjones@redhat.com>
5d4d477
- Split module lists for UEFI boot vs UEFI cd images.
5d4d477
- Add raid modules for UEFI image (related: #750794)
5d4d477
- Include a prelink whitelist for binaries that need execstack (#839813)
945dd81
- Include fix efi memory map fix from upstream (#839363)
5d4d477
711f8a0
* Wed Aug 08 2012 Peter Jones <pjones@redhat.com> - 2.00-4
711f8a0
- Correct grub-mkimage invocation to use efidir RPM macro (jwb)
711f8a0
- Sign with test keys on UEFI systems.
711f8a0
- PPC - Handle device paths with commas correctly.
711f8a0
  Related: rhbz#828740
2047240
58a808c
* Wed Jul 25 2012 Peter Jones <pjones@redhat.com> - 2.00-3
58a808c
- Add some more code to support Secure Boot, and temporarily disable
58a808c
  some other bits that don't work well enough yet.
58a808c
  Resolves: rhbz#836695
58a808c
58a808c
* Wed Jul 11 2012 Matthew Garrett <mjg@redhat.com> - 2.00-2
58a808c
- Set a prefix for the image - needed for installer work
58a808c
- Provide the font in the EFI directory for the same reason
58a808c
a37bbab
* Thu Jun 28 2012 Peter Jones <pjones@redhat.com> - 2.00-1
a37bbab
- Rebase to grub-2.00 release.
a37bbab
8205bed
* Mon Jun 18 2012 Peter Jones <pjones@redhat.com> - 2.0-0.37.beta6
8205bed
- Fix double-free in grub-probe.
8205bed
c4a749d
* Wed Jun 06 2012 Peter Jones <pjones@redhat.com> - 2.0-0.36.beta6
c4a749d
- Build with patch19 applied.
c4a749d
ad98057
* Wed Jun 06 2012 Peter Jones <pjones@redhat.com> - 2.0-0.35.beta6
ad98057
- More ppc fixes.
ad98057
fc6558c
* Wed Jun 06 2012 Peter Jones <pjones@redhat.com> - 2.0-0.34.beta6
fc6558c
- Add IBM PPC fixes.
fc6558c
37801c1
* Mon Jun 04 2012 Peter Jones <pjones@redhat.com> - 2.0-0.33.beta6
460f2c5
- Update to beta6.
460f2c5
- Various fixes from mads.
460f2c5
bd43daa
* Fri May 25 2012 Peter Jones <pjones@redhat.com> - 2.0-0.32.beta5
bd43daa
- Revert builddep change for crt1.o; it breaks ppc build.
bd43daa
f3c723c
* Fri May 25 2012 Peter Jones <pjones@redhat.com> - 2.0-0.31.beta5
f3c723c
- Add fwsetup command (pjones)
f3c723c
- More ppc fixes (IBM)
f3c723c
8273501
* Tue May 22 2012 Peter Jones <pjones@redhat.com> - 2.0-0.30.beta5
8273501
- Fix the /other/ grub2-tools require to include epoch.
8273501
c10845e
* Mon May 21 2012 Peter Jones <pjones@redhat.com> - 2.0-0.29.beta5
c10845e
- Get rid of efi_uga and efi_gop, favoring all_video instead.
c10845e
8d4efa5
* Mon May 21 2012 Peter Jones <pjones@redhat.com> - 2.0-0.28.beta5
8d4efa5
- Name grub.efi something that's arch-appropriate (kiilerix, pjones)
8d4efa5
- use EFI/$SOMETHING_DISTRO_BASED/ not always EFI/redhat/grub2-efi/ .
8d4efa5
- move common stuff to -tools (kiilerix)
8d4efa5
- spec file cleanups (kiilerix)
8d4efa5
ed858ec
* Mon May 14 2012 Peter Jones <pjones@redhat.com> - 2.0-0.27.beta5
ed858ec
- Fix module trampolining on ppc (benh)
ed858ec
9f9108b
* Thu May 10 2012 Peter Jones <pjones@redhat.com> - 2.0-0.27.beta5
f7d8706
- Fix license of theme (mizmo)
f7d8706
  Resolves: rhbz#820713
31ad4e0
- Fix some PPC bootloader detection IBM problem
31ad4e0
  Resolves: rhbz#820722
f7d8706
44de025
* Thu May 10 2012 Peter Jones <pjones@redhat.com> - 2.0-0.26.beta5
44de025
- Update to beta5.
44de025
- Update how efi building works (kiilerix)
4a93dba
- Fix theme support to bring in fonts correctly (kiilerix, pjones)
44de025
f45c3d8
* Wed May 09 2012 Peter Jones <pjones@redhat.com> - 2.0-0.25.beta4
f45c3d8
- Include theme support (mizmo)
f45c3d8
- Include locale support (kiilerix)
f45c3d8
- Include html docs (kiilerix)
f45c3d8
0e6e69f
* Thu Apr 26 2012 Peter Jones <pjones@redhat.com> - 2.0-0.24
3bcbea7
- Various fixes from Mads Kiilerich
3bcbea7
f06903e
* Thu Apr 19 2012 Peter Jones <pjones@redhat.com> - 2.0-0.23
f06903e
- Update to 2.00~beta4
f06903e
- Make fonts work so we can do graphics reasonably
f06903e
David W. Aquilina 81e64b5
* Thu Mar 29 2012 David Aquilina <dwa@redhat.com> - 2.0-0.22
David W. Aquilina 81e64b5
- Fix ieee1275 platform define for ppc
David W. Aquilina 81e64b5
c967306
* Thu Mar 29 2012 Peter Jones <pjones@redhat.com> - 2.0-0.21
c967306
- Remove ppc excludearch lines (dwa)
c967306
- Update ppc terminfo patch (hamzy)
c967306
6950aa5
* Wed Mar 28 2012 Peter Jones <pjones@redhat.com> - 2.0-0.20
6950aa5
- Fix ppc64 vs ppc exclude according to what dwa tells me they need
6950aa5
- Fix version number to better match policy.
6950aa5
f2a9f13
* Tue Mar 27 2012 Dan Horák <dan[at]danny.cz> - 1.99-19.2
f2a9f13
- Add support for serial terminal consoles on PPC by Mark Hamzy
f2a9f13
e91c775
* Sun Mar 25 2012 Dan Horák <dan[at]danny.cz> - 1.99-19.1
e91c775
- Use Fix-tests-of-zeroed-partition patch by Mark Hamzy
e91c775
1baa278
* Thu Mar 15 2012 Peter Jones <pjones@redhat.com> - 1.99-19
1baa278
- Use --with-grubdir= on configure to make it behave like -17 did.
1baa278
28678c2
* Wed Mar 14 2012 Peter Jones <pjones@redhat.com> - 1.99-18
28678c2
- Rebase from 1.99 to 2.00~beta2
c7429be
645dc62
* Wed Mar 07 2012 Peter Jones <pjones@redhat.com> - 1.99-17
645dc62
- Update for newer autotools and gcc 4.7.0
645dc62
  Related: rhbz#782144
62a7c9b
- Add /etc/sysconfig/grub link to /etc/default/grub
62a7c9b
  Resolves: rhbz#800152
c07e9a4
- ExcludeArch s390*, which is not supported by this package.
c07e9a4
  Resolves: rhbz#758333
c07e9a4
62a7c9b
* Fri Feb 17 2012 Orion Poplawski <orion@cora.nwra.com> - 1:1.99-16
62a7c9b
- Build with -Os (bug 782144)
62a7c9b
62a7c9b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.99-15
62a7c9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
62a7c9b
62a7c9b
* Wed Dec 14 2011 Matthew Garrett <mjg@redhat.com> - 1.99-14
62a7c9b
- fix up various grub2-efi issues
62a7c9b
6c1e129
* Thu Dec 08 2011 Adam Williamson <awilliam@redhat.com> - 1.99-13
6c1e129
- fix hardwired call to grub-probe in 30_os-prober (rhbz#737203)
6c1e129
212d822
* Mon Nov 07 2011 Peter Jones <pjones@redhat.com> - 1.99-12
212d822
- Lots of .spec fixes from Mads Kiilerich:
212d822
  Remove comment about update-grub - it isn't run in any scriptlets
212d822
  patch info pages so they can be installed and removed correctly when renamed
212d822
  fix references to grub/grub2 renames in info pages (#743964)
212d822
  update README.Fedora (#734090)
212d822
  fix comments for the hack for upgrading from grub2 < 1.99-4
212d822
  fix sed syntax error preventing use of $RPM_OPT_FLAGS (#704820)
212d822
  make /etc/grub2*.cfg %config(noreplace)
212d822
  make grub.cfg %ghost - an empty file is of no use anyway
212d822
  create /etc/default/grub more like anaconda would create it (#678453)
212d822
  don't create rescue entries by default - grubby will not maintain them anyway
212d822
  set GRUB_SAVEDEFAULT=true so saved defaults works (rbhz#732058)
212d822
  grub2-efi should have its own bash completion
212d822
  don't set gfxpayload in efi mode - backport upstream r3402
212d822
- Handle dmraid better. Resolves: rhbz#742226
212d822
7cabf5f
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.99-11
7cabf5f
- Rebuilt for glibc bug#747377
7cabf5f
7c419b8
* Wed Oct 19 2011 Adam Williamson <awilliam@redhat.com> - 1.99-10
7c419b8
- /etc/default/grub is explicitly intended for user customization, so
7c419b8
  mark it as config(noreplace)
7c419b8
328405c
* Tue Oct 11 2011 Peter Jones <pjones@redhat.com> - 1.99-9
328405c
- grub has an epoch, so we need that expressed in the obsolete as well.
328405c
  Today isn't my day.
328405c
ba6990d
* Tue Oct 11 2011 Peter Jones <pjones@redhat.com> - 1.99-8
ba6990d
- Fix my bad obsoletes syntax.
ba6990d
5606a4e
* Thu Oct 06 2011 Peter Jones <pjones@redhat.com> - 1.99-7
5606a4e
- Obsolete grub
5606a4e
  Resolves: rhbz#743381
5606a4e
1156d47
* Wed Sep 14 2011 Peter Jones <pjones@redhat.com> - 1.99-6
1156d47
- Use mv not cp to try to avoid moving disk blocks around for -5 fix
1156d47
  Related: rhbz#735259
1156d47
- handle initramfs on xen better (patch from Marko Ristola)
1156d47
  Resolves: rhbz#728775
1156d47
eb5089f
* Sat Sep 03 2011 Kalev Lember <kalevlember@gmail.com> - 1.99-5
eb5089f
- Fix upgrades from grub2 < 1.99-4 (#735259)
eb5089f
6098d12
* Fri Sep 02 2011 Peter Jones <pjones@redhat.com> - 1.99-4
6098d12
- Don't do sysadminny things in %preun or %post ever. (#735259)
6098d12
- Actually include the changelog in this build (sorry about -3)
6098d12
62686d2
* Thu Sep 01 2011 Peter Jones <pjones@redhat.com> - 1.99-2
62686d2
- Require os-prober (#678456) (patch from Elad Alfassa)
62686d2
- Require which (#734959) (patch from Elad Alfassa)
62686d2
ee1d6da
* Thu Sep 01 2011 Peter Jones <pjones@redhat.com> - 1.99-1
ee1d6da
- Update to grub-1.99 final.
ee1d6da
- Fix crt1.o require on x86-64 (fix from Mads Kiilerich)
ee1d6da
- Various CFLAGS fixes (from Mads Kiilerich)
ee1d6da
  - -fexceptions and -m64
ee1d6da
- Temporarily ignore translations (from Mads Kiilerich)
ee1d6da
b35cdf3
* Thu Jul 21 2011 Peter Jones <pjones@redhat.com> - 1.99-0.3
b35cdf3
- Use /sbin not /usr/sbin .
b35cdf3
b577e7c
* Thu Jun 23 2011 Peter Lemenkov <lemenkov@gmail.com> - 1:1.99-0.2
b577e7c
- Fixes for ppc and ppc64
b577e7c
6233068
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.98-4
6233068
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild