2008-08-27 08:07:28 +00:00
# Modules always contain just 32-bit code
%define _libdir %{_exec_prefix}/lib
2009-09-12 02:25:07 +00:00
# 64bit intel machines use 32bit boot loader
2008-08-27 08:07:28 +00:00
# (We cannot just redefine _target_cpu, as we'd get i386.rpm packages then)
%ifarch x86_64
%define _target_platform i386-%{_vendor}-%{_target_os}%{?_gnu}
%endif
2012-06-01 23:55:32 +00:00
# sparc is always compiled 64 bit
2009-09-12 02:25:07 +00:00
%ifarch %{sparc}
%define _target_platform sparc64-%{_vendor}-%{_target_os}%{?_gnu}
%endif
2008-08-27 08:07:28 +00:00
2011-03-10 19:25:50 +00:00
%if ! 0%{?efi}
2012-05-21 18:57:29 +00:00
2014-01-14 17:57:20 +00:00
%global efi_only aarch64
%global efiarchs %{ix86} x86_64 ia64 %{efi_only}
2012-05-21 18:57:29 +00:00
%ifarch %{ix86}
%global grubefiarch i386-efi
%global grubefiname grubia32.efi
2012-08-08 17:38:23 +00:00
%global grubeficdname gcdia32.efi
2012-05-21 18:57:29 +00:00
%endif
%ifarch x86_64
%global grubefiarch %{_arch}-efi
%global grubefiname grubx64.efi
2012-08-08 17:38:23 +00:00
%global grubeficdname gcdx64.efi
2011-03-10 19:25:50 +00:00
%endif
2014-01-14 17:57:20 +00:00
%ifarch aarch64
%global grubefiarch arm64-efi
%global grubefiname grubaa64.efi
%global grubeficdname gcdaa64.efi
%endif
2011-03-10 19:25:50 +00:00
2012-05-21 18:57:29 +00:00
%if 0%{?rhel}
%global efidir redhat
%endif
%if 0%{?fedora}
%global efidir fedora
%endif
2012-03-14 20:33:25 +00:00
2012-05-21 18:57:29 +00:00
%endif
2012-03-14 20:33:25 +00:00
2014-01-06 16:39:16 +00:00
%global tarversion 2.02~beta2
2012-03-14 20:33:25 +00:00
%undefine _missing_build_ids_terminate_build
2008-08-27 08:07:28 +00:00
Name : grub2
2009-11-10 19:43:01 +00:00
Epoch : 1
2014-01-06 16:39:16 +00:00
Version : 2.02
2014-03-13 18:02:22 +00:00
Release : 0.3%{?dist}
2008-08-27 08:07:28 +00:00
Summary : Bootloader with support for Linux, Multiboot and more
Group : System Environment/Base
License : GPLv3+
URL : http://www.gnu.org/software/grub/
2011-10-11 20:53:55 +00:00
Obsoletes : grub < 1:0.98
2012-03-17 01:16:35 +00:00
Source0 : ftp://alpha.gnu.org/gnu/grub/grub-%{tarversion} .tar.xz
2014-01-06 16:39:16 +00:00
#Source0: ftp://ftp.gnu.org/gnu/grub/grub-%{tarversion}.tar.xz
2012-04-19 20:33:09 +00:00
Source4 : http://unifoundry.com/unifont-5.1.20080820.pcf.gz
2012-05-09 20:55:11 +00:00
Source5 : theme.tar.bz2
2012-07-25 13:34:55 +00:00
#Source6: grub-cd.cfg
2014-03-13 18:02:22 +00:00
Patch0001 : 0001-fix-EFI-detection-on-Windows.patch
Patch0002 : 0002-grub-core-kern-arm-cache_armv6.S-Remove-.arch-direct.patch
Patch0003 : 0003-NEWS-First-draft-of-2.02-entry.patch
Patch0004 : 0004-remove-unused-error.h-from-kern-emu-misc.c.patch
Patch0005 : 0005-Don-t-abort-on-unavailable-coreboot-tables-if-not-ru.patch
Patch0006 : 0006-NEWS-Add-few-missing-entries.-Correct-existing-ones.patch
Patch0007 : 0007-strip-.eh_frame-section-from-arm64-efi-kernel.patch
Patch0008 : 0008-use-grub-boot-aa64.efi-for-boot-images-on-AArch64.patch
Patch0009 : 0009-fix-32-bit-compilation-on-MinGW-w64.patch
Patch0010 : 0010-Change-grub-mkrescue-to-use-bootaa64.efi-too.patch
Patch0011 : 0011-arm64-set-correct-length-of-device-path-end-entry.patch
Patch0012 : 0012-Makefile.util.def-grub-macbless-Change-mansection-to.patch
Patch0013 : 0013-add-part_apple-to-EFI-rescue-image-to-fix-missing-pr.patch
Patch0014 : 0014-freebsd-hostdisk.c-is-only-ever-compiled-on-FreeBSD.patch
Patch0015 : 0015-Prefer-more-portable-test-1-constructs.patch
Patch0016 : 0016-NEWS-Add-few-missing-entries.patch
Patch0017 : 0017-grub-core-kern-efi-efi.c-Ensure-that-the-result-star.patch
Patch0018 : 0018-util-grub-mount.c-Extend-GCC-warning-workaround-to-g.patch
Patch0019 : 0019-reintroduce-BUILD_LDFLAGS-for-the-cross-compile-case.patch
Patch0020 : 0020-grub-core-term-terminfo.c-Recognize-keys-F1-F12.patch
Patch0021 : 0021-Fix-ChangeLog-date.patch
Patch0022 : 0022-Use-_W64-to-detect-MinGW-W64-32-instead-of-_FILE_OFF.patch
Patch0023 : 0023-add-BUILD_EXEEXT-support-to-fix-make-clean-on-Window.patch
Patch0024 : 0024-fix-include-loop-on-MinGW-due-to-libintl.h-pulling-s.patch
Patch0025 : 0025-grub-core-commands-macbless.c-Rename-FILE-and-DIR-to.patch
Patch0026 : 0026-Makefile.util.def-Link-grub-ofpathname-with-zfs-libs.patch
Patch0027 : 0027-Makefile.am-default_payload.elf-Add-modules.patch
Patch0028 : 0028-fix-removal-of-cpu-machine-links-on-mingw-msys.patch
Patch0029 : 0029-grub-core-normal-main.c-read_config_file-Buffer-conf.patch
Patch0030 : 0030-util-grub-install.c-Fix-a-typo.patch
Patch0031 : 0031-use-MODULE_FILES-for-genemuinit-instead-of-MOD_FILES.patch
Patch0032 : 0032-Ignore-EPERM-when-modifying-kern.geom.debugflags.patch
Patch0033 : 0033-change-stop-condition-to-avoid-infinite-loops.patch
Patch0034 : 0034-increase-network-try-interval-gradually.patch
Patch0035 : 0035-look-for-DejaVu-also-in-usr-share-fonts-truetype.patch
Patch0036 : 0036-Show-detected-path-to-DejaVuSans-in-configure-summar.patch
Patch0037 : 0037-add-GRUB_WINDOWS_EXTRA_DIST-to-allow-shipping-runtim.patch
Patch0038 : 0038-util-grub-install.c-write_to_disk-Add-an-info-messag.patch
Patch0039 : 0039-util-grub-install.c-List-available-targets.patch
Patch0040 : 0040-Fix-several-translatable-strings.patch
Patch0041 : 0041-do-not-set-default-prefix-in-grub-mkimage.patch
Patch0042 : 0042-fix-Mingw-W64-32-cross-compile-failure-due-to-printf.patch
Patch0043 : 0043-grub-core-term-serial.c-grub_serial_register-Fix-inv.patch
Patch0044 : 0044-grub-install-support-for-partitioned-partx-loop-devi.patch
Patch0045 : 0045-grub-core-term-at_keyboard.c-Tolerate-missing-keyboa.patch
Patch0046 : 0046-grub-core-disk-ahci.c-Do-not-enable-I-O-decoding-and.patch
Patch0047 : 0047-grub-core-disk-ahci.c-Allocate-and-clean-space-for-a.patch
Patch0048 : 0048-grub-core-disk-ahci.c-Add-safety-cleanups.patch
Patch0049 : 0049-grub-core-disk-ahci.c-Properly-handle-transactions-w.patch
Patch0050 : 0050-grub-core-disk-ahci.c-Increase-timeout.-Some-SSDs-ta.patch
Patch0051 : 0051-util-grub-mkfont.c-Build-fix-for-argp.h-with-older-g.patch
Patch0052 : 0052-util-grub-mkrescue.c-Build-fix-for-argp.h-with-older.patch
Patch0053 : 0053-add-grub_env_set_net_property-function.patch
Patch0054 : 0054-add-bootpath-parser-for-open-firmware.patch
Patch0055 : 0055-grub-core-disk-ahci.c-Ignore-NPORTS-field-and-rely-o.patch
Patch0056 : 0056-grub-core-kern-i386-coreboot-mmap.c-Filter-out-0xa00.patch
Patch0057 : 0057-grub-core-loader-i386-multiboot_mbi.c-grub_multiboot.patch
Patch0058 : 0058-grub-core-mmap-i386-uppermem.c-lower_hook-COREBOOT-I.patch
Patch0059 : 0059-grub-core-kern-i386-pc-mmap.c-Fallback-to-EISA-memor.patch
Patch0060 : 0060-include-grub-i386-openbsd_bootarg.h-Add-addr-and-fre.patch
Patch0061 : 0061-Migrate-PPC-from-Yaboot-to-Grub2.patch
Patch0062 : 0062-Add-fw_path-variable-revised.patch
Patch0063 : 0063-Add-support-for-linuxefi.patch
Patch0064 : 0064-Use-linuxefi-and-initrdefi-where-appropriate.patch
Patch0065 : 0065-Don-t-allow-insmod-when-secure-boot-is-enabled.patch
Patch0066 : 0066-Pass-x-hex-hex-straight-through-unmolested.patch
Patch0067 : 0067-Fix-crash-on-http.patch
Patch0068 : 0068-IBM-client-architecture-CAS-reboot-support.patch
Patch0069 : 0069-Add-vlan-tag-support.patch
Patch0070 : 0070-Add-X-option-to-printf-functions.patch
Patch0071 : 0071-DHCP-client-ID-and-UUID-options-added.patch
Patch0072 : 0072-Search-for-specific-config-file-for-netboot.patch
Patch0073 : 0073-blscfg-add-blscfg-module-to-parse-Boot-Loader-Specif.patch
Patch0074 : 0074-Move-bash-completion-script-922997.patch
Patch0075 : 0075-for-ppc-reset-console-display-attr-when-clear-screen.patch
Patch0076 : 0076-Don-t-write-messages-to-the-screen.patch
Patch0077 : 0077-Don-t-print-GNU-GRUB-header.patch
Patch0078 : 0078-Don-t-add-to-highlighted-row.patch
Patch0079 : 0079-Don-t-add-to-highlighted-row.patch
Patch0080 : 0080-Message-string-cleanups.patch
Patch0081 : 0081-Fix-border-spacing-now-that-we-aren-t-displaying-it.patch
Patch0082 : 0082-Use-the-correct-indentation-for-the-term-help-text.patch
Patch0083 : 0083-Indent-menu-entries.patch
Patch0084 : 0084-Fix-margins.patch
Patch0085 : 0085-Add-support-for-UEFI-operating-systems-returned-by-o.patch
Patch0086 : 0086-Disable-GRUB-video-support-for-IBM-power-machines.patch
Patch0087 : 0087-Use-2-instead-of-1-for-our-right-hand-margin-so-line.patch
Patch0088 : 0088-Use-linux16-when-appropriate-880840.patch
Patch0089 : 0089-Enable-pager-by-default.-985860.patch
Patch0090 : 0090-F10-doesn-t-work-on-serial-so-don-t-tell-the-user-to.patch
Patch0091 : 0091-Don-t-say-GNU-Linux-in-generated-menus.patch
Patch0092 : 0092-Don-t-draw-a-border-around-the-menu.patch
Patch0093 : 0093-Use-the-standard-margin-for-the-timeout-string.patch
Patch0094 : 0094-Fix-grub_script_execute_sourcecode-usage-on-ppc.patch
Patch0095 : 0095-Add-.eh_frame-to-list-of-relocations-stripped.patch
Patch0096 : 0096-Make-10_linux-work-with-our-changes-for-linux16-and-.patch
Patch0097 : 0097-Don-t-print-during-fdt-loading-method.patch
Patch0098 : 0098-Honor-a-symlink-when-generating-configuration-by-gru.patch
Patch0099 : 0099-Don-t-require-a-password-to-boot-entries-generated-b.patch
Patch0100 : 0100-Don-t-emit-Booting-.-message.patch
Patch0101 : 0101-Make-CTRL-and-ALT-keys-work-as-expected-on-EFI-syste.patch
Patch0102 : 0102-May-as-well-try-it.patch
Patch0103 : 0103-use-fw_path-prefix-when-fallback-searching-for-grub-.patch
Patch0104 : 0104-Try-mac-guid-etc-before-grub.cfg-on-tftp-config-file.patch
Patch0105 : 0105-trim-arp-packets-with-abnormal-size.patch
Patch0106 : 0106-Fix-convert-function-to-support-NVMe-devices.patch
Patch0107 : 0107-Fix-bad-test-on-GRUB_DISABLE_SUBMENU.patch
Patch0108 : 0108-Switch-to-use-APM-Mustang-device-tree-for-hardware-t.patch
Patch0109 : 0109-Use-the-default-device-tree-from-the-grub-default-fi.patch
Patch0110 : 0110-reopen-SNP-protocol-for-exclusive-use-by-grub.patch
Patch0111 : 0111-Reduce-timer-event-frequency-by-10.patch
Patch0112 : 0112-always-return-error-to-UEFI.patch
2013-06-13 14:06:04 +00:00
2011-03-10 19:25:50 +00:00
BuildRequires : flex bison binutils python
2014-03-13 18:02:22 +00:00
BuildRequires : ncurses-devel xz-devel bzip2-devel
2009-11-10 18:49:52 +00:00
BuildRequires : freetype-devel libusb-devel
2014-01-14 17:57:20 +00:00
%ifarch %{sparc} x86_64 aarch64
2012-06-01 23:55:32 +00:00
# sparc builds need 64 bit glibc-devel - also for 32 bit userland
2012-05-25 21:16:56 +00:00
BuildRequires : /usr/lib64/crt1.o glibc-static
%else
2012-06-01 23:55:32 +00:00
# ppc64 builds need the ppc crt1.o
2012-05-25 21:16:56 +00:00
BuildRequires : /usr/lib/crt1.o glibc-static
%endif
2011-03-03 22:08:24 +00:00
BuildRequires : autoconf automake autogen device-mapper-devel
BuildRequires : freetype-devel gettext-devel git
2011-05-11 14:54:21 +00:00
BuildRequires : texinfo
2012-05-10 00:44:50 +00:00
BuildRequires : dejavu-sans-fonts
2013-05-15 20:13:10 +00:00
BuildRequires : help2man
2012-08-23 15:12:09 +00:00
%ifarch %{efiarchs}
2014-01-14 17:57:20 +00:00
%ifnarch aarch64
2012-10-22 18:39:39 +00:00
BuildRequires : pesign >= 0.99-8
2012-08-23 15:12:09 +00:00
%endif
2014-01-14 17:57:20 +00:00
%endif
2008-08-27 08:07:28 +00:00
2013-05-10 23:08:54 +00:00
Requires : gettext os-prober which file
2012-05-22 15:40:48 +00:00
Requires : %{name} -tools = %{epoch} :%{version} -%{release}
2010-01-20 17:32:08 +00:00
Requires(pre) : dracut
Requires(post) : dracut
2008-08-27 08:07:28 +00:00
2012-06-04 00:29:21 +00:00
ExcludeArch : s390 s390x %{arm}
2013-07-02 18:13:49 +00:00
Obsoletes : grub2 <= 1:2.00-20%{?dist}
2008-08-27 08:07:28 +00:00
%description
2011-03-10 19:25:50 +00:00
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
bootloader with modular architecture. It support rich varietyof kernel formats,
2012-05-21 15:34:06 +00:00
file systems, computer architectures and hardware devices. This subpackage
provides support for PC BIOS systems.
2011-03-10 19:25:50 +00:00
2012-06-01 23:55:36 +00:00
%ifarch %{efiarchs}
2011-03-10 19:25:50 +00:00
%package efi
Summary : GRUB for EFI systems.
Group : System Environment/Base
2012-05-21 20:02:42 +00:00
Requires : %{name} -tools = %{epoch} :%{version} -%{release}
2013-07-02 18:13:49 +00:00
Obsoletes : grub2-efi <= 1:2.00-20%{?dist}
2011-03-10 19:25:50 +00:00
%description efi
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
bootloader with modular architecture. It support rich varietyof kernel formats,
file systems, computer architectures and hardware devices. This subpackage
provides support for EFI systems.
2013-10-02 20:47:55 +00:00
%package efi-modules
Summary : Modules used to build custom grub.efi images
Group : System Environment/Base
Requires : %{name} -tools = %{epoch} :%{version} -%{release}
Obsoletes : grub2-efi <= 1:2.00-20%{?dist}
%description efi-modules
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
bootloader with modular architecture. It support rich varietyof kernel formats,
file systems, computer architectures and hardware devices. This subpackage
provides support for rebuilding your own grub.efi on EFI systems.
2011-03-10 19:25:50 +00:00
%endif
2008-08-27 08:07:28 +00:00
2012-05-21 15:34:06 +00:00
%package tools
Summary : Support tools for GRUB.
Group : System Environment/Base
Requires : gettext os-prober which file system-logos
%description tools
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
bootloader with modular architecture. It support rich varietyof kernel formats,
file systems, computer architectures and hardware devices. This subpackage
provides tools for support of all platforms.
2013-05-10 23:08:54 +00:00
%package starfield-theme
Summary : An example theme for GRUB.
Group : System Environment/Base
Requires : system-logos
2013-07-02 18:13:49 +00:00
Obsoletes : grub2 <= 1:2.00-20%{?dist}
Obsoletes : grub2-efi <= 1:2.00-20%{?dist}
2013-05-10 23:08:54 +00:00
%description starfield-theme
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
bootloader with modular architecture. It support rich varietyof kernel formats,
file systems, computer architectures and hardware devices. This subpackage
provides an example theme for the grub screen.
2008-08-27 08:07:28 +00:00
%prep
2012-03-14 20:33:25 +00:00
%setup -T -c -n grub-%{tarversion}
2012-06-01 23:55:36 +00:00
%ifarch %{efiarchs}
2012-03-14 20:33:25 +00:00
%setup -D -q -T -a 0 -n grub-%{tarversion}
cd grub-%{tarversion}
2012-04-19 20:33:09 +00:00
# place unifont in the '.' from which configure is run
cp %{SOURCE4} unifont.pcf.gz
2011-03-03 22:08:24 +00:00
git init
2012-09-18 22:02:52 +00:00
git config user.email " g r u b 2 - o w n e r @ f e d o r a p r o j e c t . o r g "
2011-03-03 22:08:24 +00:00
git config user.name " F e d o r a N i n j a s "
git add .
2012-03-14 20:33:25 +00:00
git commit -a -q -m " %{tarversion} b a s e l i n e . "
2011-03-03 22:08:24 +00:00
git am %{patches}
2011-03-10 19:25:50 +00:00
cd ..
2012-03-14 20:33:25 +00:00
mv grub-%{tarversion} grub-efi-%{tarversion}
2011-03-10 19:25:50 +00:00
%endif
2014-01-14 17:57:20 +00:00
%ifarch %{efi_only}
ln -s grub-efi-%{tarversion} grub-%{tarversion}
%else
2012-03-14 20:33:25 +00:00
%setup -D -q -T -a 0 -n grub-%{tarversion}
cd grub-%{tarversion}
2012-04-19 20:33:09 +00:00
# place unifont in the '.' from which configure is run
cp %{SOURCE4} unifont.pcf.gz
2011-03-10 19:25:50 +00:00
git init
2012-09-18 22:02:52 +00:00
git config user.email " g r u b 2 - o w n e r @ f e d o r a p r o j e c t . o r g "
2011-03-10 19:25:50 +00:00
git config user.name " F e d o r a N i n j a s "
git add .
2012-03-14 20:33:25 +00:00
git commit -a -q -m " %{tarversion} b a s e l i n e . "
2011-03-10 19:25:50 +00:00
git am %{patches}
2014-01-14 17:57:20 +00:00
%endif
2008-08-27 09:06:33 +00:00
2008-08-27 08:07:28 +00:00
%build
2012-06-01 23:55:36 +00:00
%ifarch %{efiarchs}
2012-03-14 20:33:25 +00:00
cd grub-efi-%{tarversion}
2011-03-10 19:25:50 +00:00
./autogen.sh
2011-09-01 15:33:20 +00:00
%configure \
CFLAGS=" $ ( e c h o $RPM_OPT_FLAGS | s e d \
2012-03-07 14:11:56 +00:00
-e 's/-O.//g' \
2014-03-13 17:48:55 +00:00
-e 's/-fstack-protector[[:alpha:]-]\+//g' \
2011-09-01 15:33:20 +00:00
-e 's/--param=ssp-buffer-size=4//g' \
2011-10-27 15:09:02 +00:00
-e 's/-mregparm=3/-mregparm=4/g' \
2011-09-01 15:33:20 +00:00
-e 's/-fexceptions//g' \
2014-01-06 16:39:16 +00:00
-e 's/-fasynchronous-unwind-tables//g' \
2014-03-13 17:48:55 +00:00
-e 's/^/ -fno-strict-aliasing /' )" \
2011-09-01 15:33:20 +00:00
TARGET_LDFLAGS=-static \
--with-platform=efi \
2012-05-21 15:34:06 +00:00
--with-grubdir=%{name} \
2012-04-29 14:53:50 +00:00
--program-transform-name=s,grub,%{name} , \
2013-06-07 18:03:56 +00:00
--disable-grub-mount \
2012-04-19 20:33:09 +00:00
--disable-werror
2014-03-13 17:48:55 +00:00
2011-03-10 19:25:50 +00:00
make %{?_smp_mflags}
2013-02-14 19:02:42 +00:00
GRUB_MODULES=" a l l _ v i d e o b o o t b t r f s c a t c h a i n c o n f i g f i l e e c h o e f i f w s e t u p \
2012-07-25 13:34:55 +00:00
efinet ext2 fat font gfxmenu gfxterm gzio halt hfsplus iso9660 \
2014-01-14 17:57:20 +00:00
jpeg lvm mdraid09 mdraid1x minicmd normal part_apple \
part_msdos part_gpt password_pbkdf2 png reboot search \
search_fs_uuid search_fs_file search_label sleep test tftp \
video xfs mdraid09 mdraid1x"
%ifarch aarch64
GRUB_MODULES=" $ { G R U B _ M O D U L E S } l i n u x "
%else
GRUB_MODULES+=" $ { G R U B _ M O D U L E S } l i n u x e f i m u l t i b o o t 2 m u l t i b o o t "
%endif
./grub-mkimage -O %{grubefiarch} -o %{grubefiname} .orig -p /EFI/%{efidir} \
-d grub-core ${GRUB_MODULES}
%ifarch aarch64
mv %{grubefiname} .orig %{grubefiname}
%else
2012-08-08 17:38:23 +00:00
./grub-mkimage -O %{grubefiarch} -o %{grubeficdname} .orig -p /EFI/BOOT \
2013-02-14 19:02:42 +00:00
-d grub-core ${GRUB_MODULES}
2013-06-07 18:03:56 +00:00
%pesign -s -i %{grubeficdname} .orig -o %{grubeficdname}
%pesign -s -i %{grubefiname} .orig -o %{grubefiname}
2014-01-14 17:57:20 +00:00
%endif
2011-03-10 19:25:50 +00:00
cd ..
%endif
2012-03-14 20:33:25 +00:00
cd grub-%{tarversion}
2014-01-14 17:57:20 +00:00
%ifnarch %{efi_only}
2011-03-10 19:25:50 +00:00
./autogen.sh
2008-08-27 08:07:28 +00:00
# -static is needed so that autoconf script is able to link
# test that looks for _start symbol on 64 bit platforms
2012-03-29 17:55:01 +00:00
%ifarch %{sparc} ppc ppc64
2012-03-14 20:33:25 +00:00
%define platform ieee1275
2009-09-12 02:25:07 +00:00
%else
2012-03-14 20:33:25 +00:00
%define platform pc
2009-09-12 02:25:07 +00:00
%endif
2011-09-01 15:33:20 +00:00
%configure \
CFLAGS=" $ ( e c h o $RPM_OPT_FLAGS | s e d \
2012-03-07 15:43:18 +00:00
-e 's/-O.//g' \
2014-03-13 17:48:55 +00:00
-e 's/-fstack-protector[[:alpha:]-]\+//g' \
2011-09-01 15:33:20 +00:00
-e 's/--param=ssp-buffer-size=4//g' \
2011-10-27 15:09:02 +00:00
-e 's/-mregparm=3/-mregparm=4/g' \
2011-09-01 15:33:20 +00:00
-e 's/-fexceptions//g' \
-e 's/-m64//g' \
2014-01-06 16:39:16 +00:00
-e 's/-fasynchronous-unwind-tables//g' \
-e 's/-mcpu=power7/-mcpu=power6/g' \
2014-03-13 17:48:55 +00:00
-e 's/^/ -fno-strict-aliasing /' )" \
2011-09-01 15:33:20 +00:00
TARGET_LDFLAGS=-static \
2012-03-14 20:33:25 +00:00
--with-platform=%{platform} \
2012-05-21 15:34:06 +00:00
--with-grubdir=%{name} \
2011-09-01 15:33:20 +00:00
--program-transform-name=s,grub,%{name} , \
2013-06-07 18:03:56 +00:00
--disable-grub-mount \
2012-04-19 20:33:09 +00:00
--disable-werror
2008-08-27 08:07:28 +00:00
2009-09-12 02:25:07 +00:00
make %{?_smp_mflags}
2014-01-14 17:57:20 +00:00
%endif
2008-08-27 08:07:28 +00:00
2011-10-27 15:08:58 +00:00
sed -i -e 's,(grub),(%{name}),g' \
-e 's,grub.info,%{name}.info,g' \
-e 's,\* GRUB:,* GRUB2:,g' \
2011-10-27 15:08:59 +00:00
-e 's,/boot/grub/,/boot/%{name}/,g' \
2012-04-29 14:37:16 +00:00
-e 's,\([^-]\)grub-\([a-z]\),\1%{name}-\2,g' \
2011-10-27 15:08:58 +00:00
docs/grub.info
sed -i -e 's,grub-dev,%{name}-dev,g' docs/grub-dev.info
2012-04-29 14:37:16 +00:00
/usr/bin/makeinfo --html --no-split -I docs -o grub-dev.html docs/grub-dev.texi
/usr/bin/makeinfo --html --no-split -I docs -o grub.html docs/grub.texi
sed -i -e 's,/boot/grub/,/boot/%{name}/,g' \
-e 's,\([^-]\)grub-\([a-z]\),\1%{name}-\2,g' \
grub.html
2008-08-27 08:07:28 +00:00
%install
set -e
rm -fr $RPM_BUILD_ROOT
2011-03-10 19:25:50 +00:00
2012-06-01 23:55:36 +00:00
%ifarch %{efiarchs}
2012-03-14 20:33:25 +00:00
cd grub-efi-%{tarversion}
2011-03-10 19:25:50 +00:00
make DESTDIR=$RPM_BUILD_ROOT install
2012-10-01 17:34:30 +00:00
find $RPM_BUILD_ROOT -iname " * . m o d u l e " -exec chmod a-x {} \;
2011-03-10 19:25:50 +00:00
# Ghost config file
2012-05-21 18:57:29 +00:00
install -m 755 -d $RPM_BUILD_ROOT /boot/efi/EFI/%{efidir} /
touch $RPM_BUILD_ROOT /boot/efi/EFI/%{efidir} /grub.cfg
ln -s ../boot/efi/EFI/%{efidir} /grub.cfg $RPM_BUILD_ROOT %{_sysconfdir} /%{name} -efi.cfg
2011-03-10 19:25:50 +00:00
# Install ELF files modules and images were created from into
# the shadow root, where debuginfo generator will grab them from
find $RPM_BUILD_ROOT -name '*.mod' -o -name '*.img' |
while read MODULE
do
BASE=$(echo $MODULE |sed -r " s , . * / ( [ ^ / ] * ) \ . ( m o d | i m g ) , \1 , " )
# Symbols from .img files are in .exec files, while .mod
# modules store symbols in .elf. This is just because we
# have both boot.img and boot.mod ...
EXT=$(echo $MODULE |grep -q '.mod' && echo '.elf' || echo '.exec' )
TGT=$(echo $MODULE |sed " s , $RPM_BUILD_ROOT , . d e b u g r o o t , " )
# install -m 755 -D $BASE$EXT $TGT
done
2012-05-21 18:57:29 +00:00
install -m 755 %{grubefiname} $RPM_BUILD_ROOT /boot/efi/EFI/%{efidir} /%{grubefiname}
2014-01-14 17:57:20 +00:00
%ifnarch aarch64
2012-08-08 17:38:23 +00:00
install -m 755 %{grubeficdname} $RPM_BUILD_ROOT /boot/efi/EFI/%{efidir} /%{grubeficdname}
2014-01-14 17:57:20 +00:00
%endif
2012-07-25 13:34:55 +00:00
install -D -m 644 unicode.pf2 $RPM_BUILD_ROOT /boot/efi/EFI/%{efidir} /fonts/unicode.pf2
2011-03-10 19:25:50 +00:00
cd ..
%endif
2012-03-14 20:33:25 +00:00
cd grub-%{tarversion}
2014-01-14 17:57:20 +00:00
%ifnarch %{efi_only}
2008-08-27 08:07:28 +00:00
make DESTDIR=$RPM_BUILD_ROOT install
# Ghost config file
install -d $RPM_BUILD_ROOT /boot/%{name}
touch $RPM_BUILD_ROOT /boot/%{name} /grub.cfg
ln -s ../boot/%{name} /grub.cfg $RPM_BUILD_ROOT %{_sysconfdir} /%{name} .cfg
2014-01-14 17:57:20 +00:00
%endif
2008-08-27 08:07:28 +00:00
2013-06-10 19:41:42 +00:00
cp -a $RPM_BUILD_ROOT %{_datarootdir} /locale/en\@quot $RPM_BUILD_ROOT %{_datarootdir} /locale/en
2008-08-27 08:07:28 +00:00
# Install ELF files modules and images were created from into
# the shadow root, where debuginfo generator will grab them from
find $RPM_BUILD_ROOT -name '*.mod' -o -name '*.img' |
while read MODULE
do
BASE=$(echo $MODULE |sed -r " s , . * / ( [ ^ / ] * ) \ . ( m o d | i m g ) , \1 , " )
# Symbols from .img files are in .exec files, while .mod
# modules store symbols in .elf. This is just because we
# have both boot.img and boot.mod ...
EXT=$(echo $MODULE |grep -q '.mod' && echo '.elf' || echo '.exec' )
TGT=$(echo $MODULE |sed " s , $RPM_BUILD_ROOT , . d e b u g r o o t , " )
2009-09-12 02:25:07 +00:00
# install -m 755 -D $BASE$EXT $TGT
2008-08-27 08:07:28 +00:00
done
2012-05-21 15:34:06 +00:00
mv $RPM_BUILD_ROOT %{_infodir} /grub.info $RPM_BUILD_ROOT %{_infodir} /%{name} .info
mv $RPM_BUILD_ROOT %{_infodir} /grub-dev.info $RPM_BUILD_ROOT %{_infodir} /%{name} -dev.info
2011-03-03 22:08:24 +00:00
rm $RPM_BUILD_ROOT %{_infodir} /dir
2008-08-27 08:07:28 +00:00
# Defaults
2012-05-21 18:57:29 +00:00
mkdir ${RPM_BUILD_ROOT} %{_sysconfdir} /default
touch ${RPM_BUILD_ROOT} %{_sysconfdir} /default/grub
2012-03-07 14:11:56 +00:00
mkdir ${RPM_BUILD_ROOT} %{_sysconfdir} /sysconfig
ln -sf %{_sysconfdir} /default/grub \
${RPM_BUILD_ROOT} %{_sysconfdir} /sysconfig/grub
2012-04-29 14:36:14 +00:00
cd ..
%find_lang grub
2012-05-10 00:44:50 +00:00
# Fedora theme in /boot/grub2/themes/system/
2012-05-09 20:55:11 +00:00
cd $RPM_BUILD_ROOT
tar xjf %{SOURCE5}
2012-05-10 00:44:50 +00:00
$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"
$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"
$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"
2012-05-09 20:55:11 +00:00
2012-08-08 17:38:23 +00:00
# Make selinux happy with exec stack binaries.
mkdir ${RPM_BUILD_ROOT} %{_sysconfdir} /prelink.conf.d/
cat << EOF > ${RPM_BUILD_ROOT} %{_sysconfdir} /prelink.conf.d/grub2.conf
# these have execstack, and break under selinux
-b /usr/bin/grub2-script-check
-b /usr/bin/grub2-mkrelpath
-b /usr/bin/grub2-fstest
-b /usr/sbin/grub2-bios-setup
-b /usr/sbin/grub2-probe
-b /usr/sbin/grub2-sparc64-setup
EOF
2008-08-27 08:07:28 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
%post
2011-03-03 22:08:24 +00:00
if [ " $ 1 " = 1 ]; then
2012-05-21 15:34:06 +00:00
/sbin/install-info --info-dir=%{_infodir} %{_infodir} /%{name} .info.gz || :
/sbin/install-info --info-dir=%{_infodir} %{_infodir} /%{name} -dev.info.gz || :
2011-03-03 22:08:24 +00:00
fi
2008-08-27 08:07:28 +00:00
2011-10-27 15:09:01 +00:00
%triggerun -- grub2 < 1:1.99-4
2011-09-03 18:11:08 +00:00
# grub2 < 1.99-4 removed a number of essential files in postun. To fix upgrades
# from the affected grub2 packages, we first back up the files in triggerun and
# later restore them in triggerpostun.
# https://bugzilla.redhat.com/show_bug.cgi?id=735259
2011-10-27 15:09:01 +00:00
2011-09-03 18:11:08 +00:00
# Back up the files before uninstalling old grub2
mkdir -p /boot/grub2.tmp &&
2011-09-14 20:08:42 +00:00
mv -f /boot/grub2/*.mod \
2011-09-03 18:11:08 +00:00
/boot/grub2/*.img \
/boot/grub2/*.lst \
/boot/grub2/device.map \
/boot/grub2.tmp/ || :
%triggerpostun -- grub2 < 1:1.99-4
# ... and restore the files.
test ! -f /boot/grub2/device.map &&
test -d /boot/grub2.tmp &&
mv -f /boot/grub2.tmp/*.mod \
/boot/grub2.tmp/*.img \
/boot/grub2.tmp/*.lst \
/boot/grub2.tmp/device.map \
/boot/grub2/ &&
rm -r /boot/grub2.tmp/ || :
2008-08-27 08:07:28 +00:00
%preun
2011-03-03 22:08:24 +00:00
if [ " $ 1 " = 0 ]; then
2012-05-21 15:34:06 +00:00
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir} /%{name} .info.gz || :
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir} /%{name} -dev.info.gz || :
2011-03-03 22:08:24 +00:00
fi
2008-08-27 08:07:28 +00:00
2014-01-14 17:57:20 +00:00
%ifnarch %{efi_only}
2012-04-29 14:36:14 +00:00
%files -f grub.lang
2008-08-27 08:07:28 +00:00
%defattr (-,root,root,-)
2012-03-14 20:33:25 +00:00
%{_libdir} /grub/*-%{platform} /
2011-10-27 15:09:03 +00:00
%config (noreplace) %{_sysconfdir} /%{name} .cfg
2011-10-27 15:09:04 +00:00
%ghost %config (noreplace) /boot/%{name} /grub.cfg
2012-05-21 15:34:06 +00:00
%doc grub-%{tarversion} /COPYING
2014-01-14 17:57:20 +00:00
%endif
2008-08-27 08:07:28 +00:00
2012-06-01 23:55:36 +00:00
%ifarch %{efiarchs}
2012-05-21 15:34:06 +00:00
%files efi
2011-03-10 19:25:50 +00:00
%defattr (-,root,root,-)
2012-05-21 15:34:06 +00:00
%config (noreplace) %{_sysconfdir} /%{name} -efi.cfg
2012-05-21 18:57:29 +00:00
%attr (0755,root,root)/boot/efi/EFI/%{efidir}
2012-07-25 13:34:55 +00:00
%attr (0755,root,root)/boot/efi/EFI/%{efidir} /fonts
2012-05-21 18:57:29 +00:00
%ghost %config (noreplace) /boot/efi/EFI/%{efidir} /grub.cfg
2012-05-21 15:34:06 +00:00
%doc grub-%{tarversion} /COPYING
2013-10-02 20:47:55 +00:00
%files efi-modules
%defattr (-,root,root,-)
%{_libdir} /grub/%{grubefiarch}
2012-05-21 15:34:06 +00:00
%endif
%files tools -f grub.lang
%defattr (-,root,root,-)
%dir %{_libdir} /grub/
2013-05-15 19:33:45 +00:00
%dir %{_datarootdir} /grub/
%dir %{_datarootdir} /grub/themes
2013-05-10 23:08:54 +00:00
%{_datarootdir} /grub/*
2014-01-06 16:39:16 +00:00
%{_sbindir} /%{name} -bios-setup
2012-04-19 20:33:09 +00:00
%{_sbindir} /%{name} -install
2014-01-06 16:39:16 +00:00
%{_sbindir} /%{name} -macbless
%{_sbindir} /%{name} -mkconfig
%{_sbindir} /%{name} -ofpathname
2012-04-19 20:33:09 +00:00
%{_sbindir} /%{name} -probe
%{_sbindir} /%{name} -reboot
%{_sbindir} /%{name} -set-default
%{_sbindir} /%{name} -sparc64-setup
2008-08-27 08:07:28 +00:00
%{_bindir} /%{name} -editenv
2014-01-06 16:39:16 +00:00
%{_bindir} /%{name} -file
2009-11-10 20:41:16 +00:00
%{_bindir} /%{name} -fstest
2014-01-06 16:39:16 +00:00
%{_bindir} /%{name} -glue-efi
2011-03-03 22:08:24 +00:00
%{_bindir} /%{name} -kbdcomp
%{_bindir} /%{name} -menulst2cfg
2009-11-10 20:41:16 +00:00
%{_bindir} /%{name} -mkfont
2011-03-03 22:08:24 +00:00
%{_bindir} /%{name} -mkimage
2014-01-06 16:39:16 +00:00
%{_bindir} /%{name} -mklayout
%{_bindir} /%{name} -mknetdir
2010-05-29 01:48:15 +00:00
%{_bindir} /%{name} -mkpasswd-pbkdf2
%{_bindir} /%{name} -mkrelpath
2009-11-10 22:54:45 +00:00
%ifnarch %{sparc}
2009-11-10 20:41:16 +00:00
%{_bindir} /%{name} -mkrescue
2009-11-10 22:54:45 +00:00
%endif
2014-01-06 16:39:16 +00:00
%{_bindir} /%{name} -mkstandalone
%{_bindir} /%{name} -render-label
2011-03-03 22:08:24 +00:00
%{_bindir} /%{name} -script-check
2014-01-06 16:39:16 +00:00
%{_bindir} /%{name} -syslinux2cfg
2013-04-03 19:50:04 +00:00
%{_datarootdir} /bash-completion/completions/grub
2012-08-08 17:38:23 +00:00
%{_sysconfdir} /prelink.conf.d/grub2.conf
2012-05-07 13:27:13 +00:00
%attr (0700,root,root) %dir %{_sysconfdir} /grub.d
2008-08-27 08:07:28 +00:00
%config %{_sysconfdir} /grub.d/??_*
%{_sysconfdir} /grub.d/README
2012-05-11 00:47:40 +00:00
%attr (0644,root,root) %ghost %config (noreplace) %{_sysconfdir} /default/grub
2012-03-07 14:11:56 +00:00
%{_sysconfdir} /sysconfig/grub
2008-08-27 08:07:28 +00:00
%dir /boot/%{name}
2013-06-14 19:30:46 +00:00
%dir /boot/%{name} /themes/
%dir /boot/%{name} /themes/system
%exclude /boot/%{name} /themes/system/*
%exclude %{_datarootdir} /grub/themes/
2012-05-21 15:34:06 +00:00
%{_infodir} /%{name} *
2008-08-27 08:07:28 +00:00
%exclude %{_mandir}
2012-03-14 20:33:25 +00:00
%doc grub-%{tarversion} /COPYING grub-%{tarversion} /INSTALL
%doc grub-%{tarversion} /NEWS grub-%{tarversion} /README
%doc grub-%{tarversion} /THANKS grub-%{tarversion} /TODO
2012-04-29 14:37:16 +00:00
%doc grub-%{tarversion} /grub.html
%doc grub-%{tarversion} /grub-dev.html grub-%{tarversion} /docs/font_char_metrics.png
2012-05-10 00:44:50 +00:00
%doc grub-%{tarversion} /themes/starfield/COPYING.CC-BY-SA-3.0
2011-03-10 19:25:50 +00:00
2013-05-10 23:08:54 +00:00
%files starfield-theme
2013-06-14 19:30:46 +00:00
%dir /boot/%{name} /themes/
%dir %{_datarootdir} /grub/themes
%dir %{_datarootdir} /grub/themes/starfield
/boot/%{name} /themes/
%{_datarootdir} /grub/themes/
2013-05-10 23:08:54 +00:00
2008-08-27 08:07:28 +00:00
%changelog
2014-03-13 18:02:22 +00:00
* Thu Mar 13 2014 Peter Jones <pjones@redhat.com> - 2.02-0.3
- Merge in RHEL 7 changes and ARM works in progress.
2014-01-06 16:39:16 +00:00
* Mon Jan 06 2014 Peter Jones <pjones@redhat.com> - 2.02-0.2
- Update to grub-2.02~beta2
2013-08-10 15:36:39 +00:00
* Sat Aug 10 2013 Peter Jones <pjones@redhat.com> - 2.00-25
- Last build failed because of a hardware error on the builder.
2013-08-05 14:19:48 +00:00
* Mon Aug 05 2013 Peter Jones <pjones@redhat.com> - 2.00-24
- Fix compiler flags to deal with -fstack-protector-strong
2013-08-03 16:40:42 +00:00
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.00-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-07-02 18:20:08 +00:00
* Tue Jul 02 2013 Dennis Gilmore <dennis@ausil.us> - 2.00-23
2013-07-02 18:16:14 +00:00
- add epoch to obsoletes
2013-06-21 18:47:42 +00:00
* Fri Jun 21 2013 Peter Jones <pjones@redhat.com> - 2.00-22
2013-06-21 18:46:49 +00:00
- Fix linewrapping in edit menu.
Resolves: rhbz #976643
2013-06-20 17:30:09 +00:00
* Thu Jun 20 2013 Peter Jones <pjones@redhat.com> - 2.00-21
- Fix obsoletes to pull in -starfield-theme subpackage when it should.
2013-06-14 19:30:46 +00:00
* Fri Jun 14 2013 Peter Jones <pjones@redhat.com> - 2.00-20
- Put the theme entirely ento the subpackage where it belongs (#974667)
2013-06-12 19:24:37 +00:00
* Wed Jun 12 2013 Peter Jones <pjones@redhat.com> - 2.00-19
2013-06-07 18:03:56 +00:00
- Rebase to upstream snapshot.
2013-06-12 19:24:37 +00:00
- Fix PPC build error (#967862)
- Fix crash on net_bootp command (#960624)
- Reset colors on ppc when appropriate (#908519)
- Left align " L o a d i n g . . . " messages (#908492)
- Fix probing of SAS disks on PPC (#953954)
- Add support for UEFI OSes returned by os-prober
- Disable " v i d e o " mode on PPC for now (#973205)
- Make grub fit better into the boot sequence, visually (#966719)
2013-06-07 18:03:56 +00:00
2013-05-10 23:08:54 +00:00
* Fri May 10 2013 Matthias Clasen <mclasen@redhat.com> - 2.00-18
- Move the starfield theme to a subpackage (#962004)
2013-05-16 20:43:20 +00:00
- Don't allow SSE or MMX on UEFI builds (#949761)
2013-05-10 23:08:54 +00:00
2013-05-02 20:54:52 +00:00
* Wed Apr 24 2013 Peter Jones <pjones@redhat.com> - 2.00-17.pj0
- Rebase to upstream snapshot.
2013-04-04 15:15:30 +00:00
* Thu Apr 04 2013 Peter Jones <pjones@redhat.com> - 2.00-17
2013-04-03 18:14:27 +00:00
- Fix booting from drives with 4k sectors on UEFI.
2013-04-04 15:15:30 +00:00
- Move bash completion to new location (#922997)
- Include lvm support for /boot (#906203)
2013-04-03 18:14:27 +00:00
2013-02-14 19:03:59 +00:00
* Thu Feb 14 2013 Peter Jones <pjones@redhat.com> - 2.00-16
- Allow the user to disable submenu generation
- (partially) support BLS-style configuration stanzas.
2013-02-14 19:02:42 +00:00
* Tue Feb 12 2013 Peter Jones <pjones@redhat.com> - 2.00-15.pj0
- Add various config file related changes.
2012-12-20 17:04:30 +00:00
* Thu Dec 20 2012 Dennis Gilmore <dennis@ausil.us> - 2.00-15
- bump nvr
2012-12-17 16:32:53 +00:00
* Mon Dec 17 2012 Karsten Hopp <karsten@redhat.com> 2.00-14
- add bootpath device to the device list (pfsmorigo, #886685)
2012-11-27 20:08:53 +00:00
* Tue Nov 27 2012 Peter Jones <pjones@redhat.com> - 2.00-13
- Add vlan tag support (pfsmorigo, #871563)
- Follow symlinks during PReP installation in grub2-install (pfsmorigo, #874234)
- Improve search paths for config files on network boot (pfsmorigo, #873406)
2012-10-23 14:49:39 +00:00
* Tue Oct 23 2012 Peter Jones <pjones@redhat.com> - 2.00-12
- Don't load modules when grub transitions to " n o r m a l " mode on UEFI.
2012-10-22 18:44:52 +00:00
* Mon Oct 22 2012 Peter Jones <pjones@redhat.com> - 2.00-11
2012-10-22 18:39:39 +00:00
- Rebuild with newer pesign so we'll get signed with the final signing keys.
2012-10-18 17:47:39 +00:00
* Thu Oct 18 2012 Peter Jones <pjones@redhat.com> - 2.00-10
- Various PPC fixes.
- Fix crash fetching from http (gustavold, #860834)
- Issue separate dns queries for ipv4 and ipv6 (gustavold, #860829)
- Support IBM CAS reboot (pfsmorigo, #859223)
- Include all modules in the core image on ppc (pfsmorigo, #866559)
2012-10-01 17:34:30 +00:00
* Mon Oct 01 2012 Peter Jones <pjones@redhat.com> - 1:2.00-9
- Work around bug with using " \x20 " in linux command line.
Related: rhbz#855849
2012-09-19 14:43:43 +00:00
* Thu Sep 20 2012 Peter Jones <pjones@redhat.com> - 2.00-8
- Don't error on insmod on UEFI/SB, but also don' t do any insmodding.
- Increase device path size for ieee1275
Resolves: rhbz#857936
- Make network booting work on ieee1275 machines.
Resolves: rhbz#857936
2012-09-05 21:58:48 +00:00
* Wed Sep 05 2012 Matthew Garrett <mjg@redhat.com> - 2.00-7
- Add Apple partition map support for EFI
2012-08-23 15:12:09 +00:00
* Thu Aug 23 2012 David Cantrell <dcantrell@redhat.com> - 2.00-6
- Only require pesign on EFI architectures (#851215)
2012-08-14 19:53:38 +00:00
* Tue Aug 14 2012 Peter Jones <pjones@redhat.com> - 2.00-5
2012-08-15 18:40:02 +00:00
- Work around AHCI firmware bug in efidisk driver.
2012-08-14 19:53:38 +00:00
- Move to newer pesign macros
- Don't allow insmod if we' re in secure-boot mode.
2012-08-08 17:38:23 +00:00
* Wed Aug 08 2012 Peter Jones <pjones@redhat.com>
- Split module lists for UEFI boot vs UEFI cd images.
- Add raid modules for UEFI image (related: #750794)
- Include a prelink whitelist for binaries that need execstack (#839813)
2012-08-08 18:27:04 +00:00
- Include fix efi memory map fix from upstream (#839363)
2012-08-08 17:38:23 +00:00
2012-08-08 15:52:01 +00:00
* Wed Aug 08 2012 Peter Jones <pjones@redhat.com> - 2.00-4
- Correct grub-mkimage invocation to use efidir RPM macro (jwb)
- Sign with test keys on UEFI systems.
- PPC - Handle device paths with commas correctly.
Related: rhbz#828740
2012-08-07 13:57:51 +00:00
2012-07-25 13:34:55 +00:00
* Wed Jul 25 2012 Peter Jones <pjones@redhat.com> - 2.00-3
- Add some more code to support Secure Boot, and temporarily disable
some other bits that don't work well enough yet.
Resolves: rhbz#836695
* Wed Jul 11 2012 Matthew Garrett <mjg@redhat.com> - 2.00-2
- Set a prefix for the image - needed for installer work
- Provide the font in the EFI directory for the same reason
2012-06-28 19:02:12 +00:00
* Thu Jun 28 2012 Peter Jones <pjones@redhat.com> - 2.00-1
- Rebase to grub-2.00 release.
2012-06-18 19:52:14 +00:00
* Mon Jun 18 2012 Peter Jones <pjones@redhat.com> - 2.0-0.37.beta6
- Fix double-free in grub-probe.
2012-06-06 16:40:54 +00:00
* Wed Jun 06 2012 Peter Jones <pjones@redhat.com> - 2.0-0.36.beta6
- Build with patch19 applied.
2012-06-06 16:23:56 +00:00
* Wed Jun 06 2012 Peter Jones <pjones@redhat.com> - 2.0-0.35.beta6
- More ppc fixes.
2012-06-06 15:08:26 +00:00
* Wed Jun 06 2012 Peter Jones <pjones@redhat.com> - 2.0-0.34.beta6
- Add IBM PPC fixes.
2012-06-04 16:11:22 +00:00
* Mon Jun 04 2012 Peter Jones <pjones@redhat.com> - 2.0-0.33.beta6
2012-06-04 15:49:11 +00:00
- Update to beta6.
- Various fixes from mads.
2012-05-25 21:17:48 +00:00
* Fri May 25 2012 Peter Jones <pjones@redhat.com> - 2.0-0.32.beta5
- Revert builddep change for crt1.o; it breaks ppc build.
2012-05-25 19:01:32 +00:00
* Fri May 25 2012 Peter Jones <pjones@redhat.com> - 2.0-0.31.beta5
- Add fwsetup command (pjones)
- More ppc fixes (IBM)
2012-05-22 15:40:48 +00:00
* Tue May 22 2012 Peter Jones <pjones@redhat.com> - 2.0-0.30.beta5
- Fix the /other/ grub2-tools require to include epoch.
2012-05-21 20:37:32 +00:00
* Mon May 21 2012 Peter Jones <pjones@redhat.com> - 2.0-0.29.beta5
- Get rid of efi_uga and efi_gop, favoring all_video instead.
2012-05-21 18:57:29 +00:00
* Mon May 21 2012 Peter Jones <pjones@redhat.com> - 2.0-0.28.beta5
- Name grub.efi something that's arch-appropriate (kiilerix, pjones)
- use EFI/$SOMETHING_DISTRO_BASED/ not always EFI/redhat/grub2-efi/ .
- move common stuff to -tools (kiilerix)
- spec file cleanups (kiilerix)
2012-05-14 20:51:08 +00:00
* Mon May 14 2012 Peter Jones <pjones@redhat.com> - 2.0-0.27.beta5
- Fix module trampolining on ppc (benh)
2012-05-10 19:01:03 +00:00
* Thu May 10 2012 Peter Jones <pjones@redhat.com> - 2.0-0.27.beta5
2012-05-10 19:01:03 +00:00
- Fix license of theme (mizmo)
Resolves: rhbz#820713
2012-05-10 22:05:33 +00:00
- Fix some PPC bootloader detection IBM problem
Resolves: rhbz#820722
2012-05-10 19:01:03 +00:00
2012-05-10 13:28:07 +00:00
* Thu May 10 2012 Peter Jones <pjones@redhat.com> - 2.0-0.26.beta5
- Update to beta5.
- Update how efi building works (kiilerix)
2012-05-10 13:30:40 +00:00
- Fix theme support to bring in fonts correctly (kiilerix, pjones)
2012-05-10 13:28:07 +00:00
2012-05-09 20:58:23 +00:00
* Wed May 09 2012 Peter Jones <pjones@redhat.com> - 2.0-0.25.beta4
- Include theme support (mizmo)
- Include locale support (kiilerix)
- Include html docs (kiilerix)
2012-04-26 15:09:57 +00:00
* Thu Apr 26 2012 Peter Jones <pjones@redhat.com> - 2.0-0.24
2012-04-26 15:07:14 +00:00
- Various fixes from Mads Kiilerich
2012-04-19 20:33:09 +00:00
* Thu Apr 19 2012 Peter Jones <pjones@redhat.com> - 2.0-0.23
- Update to 2.00~beta4
- Make fonts work so we can do graphics reasonably
2012-03-29 17:55:01 +00:00
* Thu Mar 29 2012 David Aquilina <dwa@redhat.com> - 2.0-0.22
- Fix ieee1275 platform define for ppc
2012-03-29 15:33:25 +00:00
* Thu Mar 29 2012 Peter Jones <pjones@redhat.com> - 2.0-0.21
- Remove ppc excludearch lines (dwa)
- Update ppc terminfo patch (hamzy)
2012-03-28 18:21:25 +00:00
* Wed Mar 28 2012 Peter Jones <pjones@redhat.com> - 2.0-0.20
- Fix ppc64 vs ppc exclude according to what dwa tells me they need
- Fix version number to better match policy.
2012-03-27 20:34:56 +00:00
* Tue Mar 27 2012 Dan Horák <dan[at]danny.cz> - 1.99-19.2
- Add support for serial terminal consoles on PPC by Mark Hamzy
2012-03-27 19:03:12 +00:00
* Sun Mar 25 2012 Dan Horák <dan[at]danny.cz> - 1.99-19.1
- Use Fix-tests-of-zeroed-partition patch by Mark Hamzy
2012-03-15 14:31:05 +00:00
* Thu Mar 15 2012 Peter Jones <pjones@redhat.com> - 1.99-19
- Use --with-grubdir= on configure to make it behave like -17 did.
2012-03-14 20:33:25 +00:00
* Wed Mar 14 2012 Peter Jones <pjones@redhat.com> - 1.99-18
- Rebase from 1.99 to 2.00~beta2
2012-03-12 19:41:49 +00:00
2012-03-07 15:43:18 +00:00
* Wed Mar 07 2012 Peter Jones <pjones@redhat.com> - 1.99-17
- Update for newer autotools and gcc 4.7.0
Related: rhbz#782144
2012-03-07 14:11:56 +00:00
- Add /etc/sysconfig/grub link to /etc/default/grub
Resolves: rhbz#800152
2011-12-08 19:36:18 +00:00
- ExcludeArch s390*, which is not supported by this package.
Resolves: rhbz#758333
2012-03-07 14:11:56 +00:00
* Fri Feb 17 2012 Orion Poplawski <orion@cora.nwra.com> - 1:1.99-16
- Build with -Os (bug 782144)
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.99-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Dec 14 2011 Matthew Garrett <mjg@redhat.com> - 1.99-14
- fix up various grub2-efi issues
2011-12-08 17:59:29 +00:00
* Thu Dec 08 2011 Adam Williamson <awilliam@redhat.com> - 1.99-13
- fix hardwired call to grub-probe in 30_os-prober (rhbz#737203)
2011-11-07 16:44:55 +00:00
* Mon Nov 07 2011 Peter Jones <pjones@redhat.com> - 1.99-12
- Lots of .spec fixes from Mads Kiilerich:
Remove comment about update-grub - it isn't run in any scriptlets
patch info pages so they can be installed and removed correctly when renamed
fix references to grub/grub2 renames in info pages (#743964)
update README.Fedora (#734090)
fix comments for the hack for upgrading from grub2 < 1.99-4
fix sed syntax error preventing use of $RPM_OPT_FLAGS (#704820)
make /etc/grub2*.cfg %config (noreplace)
make grub.cfg %ghost - an empty file is of no use anyway
create /etc/default/grub more like anaconda would create it (#678453)
don't create rescue entries by default - grubby will not maintain them anyway
set GRUB_SAVEDEFAULT=true so saved defaults works (rbhz#732058)
grub2-efi should have its own bash completion
don't set gfxpayload in efi mode - backport upstream r3402
- Handle dmraid better. Resolves: rhbz#742226
2011-10-26 23:59:55 +00:00
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.99-11
- Rebuilt for glibc bug#747377
2011-10-19 20:41:11 +00:00
* Wed Oct 19 2011 Adam Williamson <awilliam@redhat.com> - 1.99-10
- /etc/default/grub is explicitly intended for user customization, so
mark it as config(noreplace)
2011-10-11 20:53:55 +00:00
* Tue Oct 11 2011 Peter Jones <pjones@redhat.com> - 1.99-9
- grub has an epoch, so we need that expressed in the obsolete as well.
Today isn't my day.
2011-10-11 19:00:17 +00:00
* Tue Oct 11 2011 Peter Jones <pjones@redhat.com> - 1.99-8
- Fix my bad obsoletes syntax.
2011-10-06 20:58:34 +00:00
* Thu Oct 06 2011 Peter Jones <pjones@redhat.com> - 1.99-7
- Obsolete grub
Resolves: rhbz#743381
2011-09-14 20:08:42 +00:00
* Wed Sep 14 2011 Peter Jones <pjones@redhat.com> - 1.99-6
- Use mv not cp to try to avoid moving disk blocks around for -5 fix
Related: rhbz#735259
- handle initramfs on xen better (patch from Marko Ristola)
Resolves: rhbz#728775
2011-09-03 18:11:08 +00:00
* Sat Sep 03 2011 Kalev Lember <kalevlember@gmail.com> - 1.99-5
- Fix upgrades from grub2 < 1.99-4 (#735259)
2011-09-02 16:18:20 +00:00
* Fri Sep 02 2011 Peter Jones <pjones@redhat.com> - 1.99-4
- Don't do sysadminny things in %preun or %post ever. (#735259)
- Actually include the changelog in this build (sorry about -3)
2011-09-01 20:50:42 +00:00
* Thu Sep 01 2011 Peter Jones <pjones@redhat.com> - 1.99-2
- Require os-prober (#678456) (patch from Elad Alfassa)
- Require which (#734959) (patch from Elad Alfassa)
2011-09-01 15:33:20 +00:00
* Thu Sep 01 2011 Peter Jones <pjones@redhat.com> - 1.99-1
- Update to grub-1.99 final.
- Fix crt1.o require on x86-64 (fix from Mads Kiilerich)
- Various CFLAGS fixes (from Mads Kiilerich)
- -fexceptions and -m64
- Temporarily ignore translations (from Mads Kiilerich)
2011-07-21 21:20:22 +00:00
* Thu Jul 21 2011 Peter Jones <pjones@redhat.com> - 1.99-0.3
- Use /sbin not /usr/sbin .
2011-06-23 19:47:53 +00:00
* Thu Jun 23 2011 Peter Lemenkov <lemenkov@gmail.com> - 1:1.99-0.2
- Fixes for ppc and ppc64
2011-02-09 06:24:08 +00:00
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.98-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild