nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone
f96e0b
# Modules always contain just 32-bit code
f96e0b
%define _libdir %{_exec_prefix}/lib
f96e0b
f96e0b
# 64bit intel machines use 32bit boot loader
f96e0b
# (We cannot just redefine _target_cpu, as we'd get i386.rpm packages then)
f96e0b
%ifarch x86_64
f96e0b
%define _target_platform i386-%{_vendor}-%{_target_os}%{?_gnu}
f96e0b
%endif
f96e0b
# sparc is always compiled 64 bit
f96e0b
%ifarch %{sparc}
f96e0b
%define _target_platform sparc64-%{_vendor}-%{_target_os}%{?_gnu}
f96e0b
%endif
f96e0b
f96e0b
%if ! 0%{?efi}
f96e0b
39700a
%global efi_only aarch64
39700a
%global efiarchs x86_64 ia64 %{efi_only}
f96e0b
f96e0b
%ifarch x86_64
f96e0b
%global grubefiarch %{_arch}-efi
f96e0b
%global grubefiname grubx64.efi
f96e0b
%global grubeficdname gcdx64.efi
f96e0b
%endif
39700a
%ifarch aarch64
39700a
%global grubefiarch arm64-efi
39700a
%global grubefiname grubaa64.efi
39700a
%global grubeficdname gcdaa64.efi
39700a
%endif
f96e0b
f96e0b
%if 0%{?rhel}
f96e0b
%global efidir redhat
f96e0b
%endif
f96e0b
%if 0%{?fedora}
f96e0b
%global efidir fedora
f96e0b
%endif
118713
%if 0%{?centos}
118713
%global efidir centos
118713
%endif
f96e0b
f96e0b
%endif
f96e0b
606ea6
%global tarversion 2.02~beta2
f96e0b
%undefine _missing_build_ids_terminate_build
f96e0b
f96e0b
Name:           grub2
f96e0b
Epoch:          1
606ea6
Version:        2.02
23d2ea
Release:        0.44%{?dist}
f96e0b
Summary:        Bootloader with support for Linux, Multiboot and more
f96e0b
f96e0b
Group:          System Environment/Base
f96e0b
License:        GPLv3+
f96e0b
URL:            http://www.gnu.org/software/grub/
f96e0b
Obsoletes:	grub < 1:0.98
606ea6
Source0:        ftp://alpha.gnu.org/gnu/grub/grub-%{tarversion}.tar.xz
4b8b04
#Source0:	ftp://ftp.gnu.org/gnu/grub/grub-%%{tarversion}.tar.xz
118713
Source1:	centos.cer
118713
#(source removed)
23d2ea
Source3:	grub.patches
f96e0b
Source4:	http://unifoundry.com/unifont-5.1.20080820.pcf.gz
f96e0b
Source5:	theme.tar.bz2
39700a
Source6:	gitignore
f96e0b
#Source6:	grub-cd.cfg
39700a
23d2ea
%include %{SOURCE3}
f96e0b
118713
Patch9999: 0001-centos-grub2-password-fix.patch
118713
f96e0b
BuildRequires:  flex bison binutils python
39700a
BuildRequires:  ncurses-devel xz-devel bzip2-devel
f96e0b
BuildRequires:  freetype-devel libusb-devel
39700a
%ifarch %{sparc} x86_64 aarch64 ppc64le
f96e0b
# sparc builds need 64 bit glibc-devel - also for 32 bit userland
f96e0b
BuildRequires:  /usr/lib64/crt1.o glibc-static
f96e0b
%else
f96e0b
# ppc64 builds need the ppc crt1.o
f96e0b
BuildRequires:  /usr/lib/crt1.o glibc-static
f96e0b
%endif
f96e0b
BuildRequires:  autoconf automake autogen device-mapper-devel
f96e0b
BuildRequires:	freetype-devel gettext-devel git
f96e0b
BuildRequires:	texinfo
f96e0b
BuildRequires:	dejavu-sans-fonts
f96e0b
BuildRequires:	help2man
57a8ef
BuildRequires:	rpm-devel
f96e0b
%ifarch %{efiarchs}
39700a
%ifnarch aarch64
f96e0b
BuildRequires:	pesign >= 0.109-3.el7
f96e0b
%endif
39700a
%endif
f96e0b
f96e0b
Requires:	gettext os-prober which file
f96e0b
Requires:	%{name}-tools = %{epoch}:%{version}-%{release}
f96e0b
Requires(pre):  dracut
f96e0b
Requires(post): dracut
f96e0b
f96e0b
ExcludeArch:	s390 s390x %{arm}
39700a
Obsoletes:	grub2 <= 1:2.00-20%{?dist}
f96e0b
f96e0b
%description
f96e0b
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
f96e0b
bootloader with modular architecture.  It support rich varietyof kernel formats,
f96e0b
file systems, computer architectures and hardware devices.  This subpackage
f96e0b
provides support for PC BIOS systems.
f96e0b
f96e0b
%ifarch %{efiarchs}
f96e0b
%package efi
f96e0b
Summary:	GRUB for EFI systems.
f96e0b
Group:		System Environment/Base
f96e0b
Requires:	%{name}-tools = %{epoch}:%{version}-%{release}
39700a
Obsoletes:	grub2-efi <= 1:2.00-20%{?dist}
f96e0b
f96e0b
%description efi
f96e0b
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
f96e0b
bootloader with modular architecture.  It support rich varietyof kernel formats,
f96e0b
file systems, computer architectures and hardware devices.  This subpackage
f96e0b
provides support for EFI systems.
f96e0b
39700a
%package efi-modules
39700a
Summary:	Modules used to build custom grub.efi images
f96e0b
Group:		System Environment/Base
39700a
Requires:	%{name}-tools = %{epoch}:%{version}-%{release}
39700a
Obsoletes:	grub2-efi <= 1:2.00-20%{?dist}
f96e0b
39700a
%description efi-modules
f96e0b
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
f96e0b
bootloader with modular architecture.  It support rich varietyof kernel formats,
f96e0b
file systems, computer architectures and hardware devices.  This subpackage
39700a
provides support for rebuilding your own grub.efi on EFI systems.
39700a
%endif
f96e0b
39700a
%package tools
39700a
Summary:	Support tools for GRUB.
f96e0b
Group:		System Environment/Base
39700a
Requires:	gettext os-prober which file system-logos
ecb9bb
Requires(pre):	sed grep coreutils
f96e0b
39700a
%description tools
f96e0b
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
f96e0b
bootloader with modular architecture.  It support rich varietyof kernel formats,
f96e0b
file systems, computer architectures and hardware devices.  This subpackage
39700a
provides tools for support of all platforms.
f96e0b
f96e0b
%prep
f96e0b
%setup -T -c -n grub-%{tarversion}
f96e0b
%ifarch %{efiarchs}
f96e0b
%setup -D -q -T -a 0 -n grub-%{tarversion}
f96e0b
cd grub-%{tarversion}
f96e0b
# place unifont in the '.' from which configure is run
f96e0b
cp %{SOURCE4} unifont.pcf.gz
39700a
cp %{SOURCE6} .gitignore
f96e0b
git init
39700a
git config user.email "example@example.com"
39700a
git config user.name "RHEL Ninjas"
f96e0b
git add .
f96e0b
git commit -a -q -m "%{tarversion} baseline."
f96e0b
git am %{patches}
f96e0b
cd ..
f96e0b
mv grub-%{tarversion} grub-efi-%{tarversion}
f96e0b
%endif
39700a
39700a
%ifarch %{efi_only}
39700a
ln -s grub-efi-%{tarversion} grub-%{tarversion}
39700a
%else
f96e0b
%setup -D -q -T -a 0 -n grub-%{tarversion}
f96e0b
cd grub-%{tarversion}
f96e0b
# place unifont in the '.' from which configure is run
f96e0b
cp %{SOURCE4} unifont.pcf.gz
39700a
cp %{SOURCE6} .gitignore
f96e0b
git init
39700a
git config user.email "example@example.com"
39700a
git config user.name "RHEL Ninjas"
f96e0b
git add .
f96e0b
git commit -a -q -m "%{tarversion} baseline."
f96e0b
git am %{patches}
39700a
%endif
f96e0b
f96e0b
%build
f96e0b
%ifarch %{efiarchs}
f96e0b
cd grub-efi-%{tarversion}
f96e0b
./autogen.sh
f96e0b
%configure							\
f96e0b
	CFLAGS="$(echo $RPM_OPT_FLAGS | sed			\
f96e0b
		-e 's/-O.//g'					\
606ea6
		-e 's/-fstack-protector[[:alpha:]-]\+//g'	\
f96e0b
		-e 's/--param=ssp-buffer-size=4//g'		\
f96e0b
		-e 's/-mregparm=3/-mregparm=4/g'		\
f96e0b
		-e 's/-fexceptions//g'				\
f96e0b
		-e 's/-fasynchronous-unwind-tables//g'		\
ecb9bb
		-e 's/^/ -fno-strict-aliasing -std=gnu99 /' )"	\
f96e0b
	TARGET_LDFLAGS=-static					\
f96e0b
        --with-platform=efi					\
f96e0b
	--with-grubdir=%{name}					\
f96e0b
        --program-transform-name=s,grub,%{name},		\
f96e0b
	--disable-grub-mount					\
f96e0b
	--disable-werror
f96e0b
make %{?_smp_mflags}
606ea6
f96e0b
GRUB_MODULES="	all_video boot btrfs cat chain configfile echo efifwsetup \
23d2ea
		efinet ext2 fat font gfxmenu gfxterm gzio halt hfsplus http \
23d2ea
		iso9660 jpeg loadenv lvm mdraid09 mdraid1x minicmd normal \
23d2ea
		part_apple part_msdos part_gpt password_pbkdf2 png \
23d2ea
		reboot search search_fs_uuid search_fs_file search_label \
23d2ea
		sleep syslinuxcfg test tftp regexp video xfs"
39700a
%ifarch aarch64
39700a
GRUB_MODULES="${GRUB_MODULES} linux"
39700a
%else
ecb9bb
GRUB_MODULES="${GRUB_MODULES} linuxefi"
39700a
%endif
f96e0b
./grub-mkimage -O %{grubefiarch} -o %{grubefiname}.orig -p /EFI/%{efidir} \
f96e0b
		-d grub-core ${GRUB_MODULES}
39700a
./grub-mkimage -O %{grubefiarch} -o %{grubeficdname}.orig -p /EFI/BOOT \
39700a
		-d grub-core ${GRUB_MODULES}
39700a
%ifarch aarch64
39700a
mv %{grubefiname}.orig %{grubefiname}
39700a
mv %{grubeficdname}.orig %{grubeficdname}
39700a
%else
118713
%pesign -s -i %{grubefiname}.orig -o %{grubefiname} -a %{SOURCE1} -c %{SOURCE1} -n redhatsecureboot301
118713
%pesign -s -i %{grubeficdname}.orig -o %{grubeficdname} -a %{SOURCE1} -c %{SOURCE1} -n redhatsecureboot301
39700a
%endif
f96e0b
cd ..
f96e0b
%endif
f96e0b
f96e0b
cd grub-%{tarversion}
39700a
%ifnarch %{efi_only}
f96e0b
./autogen.sh
f96e0b
# -static is needed so that autoconf script is able to link
f96e0b
# test that looks for _start symbol on 64 bit platforms
39700a
%ifarch %{sparc} ppc ppc64 ppc64le
f96e0b
%define platform ieee1275
f96e0b
%else
f96e0b
%define platform pc
f96e0b
%endif
f96e0b
%configure							\
f96e0b
	CFLAGS="$(echo $RPM_OPT_FLAGS | sed			\
f96e0b
		-e 's/-O.//g'					\
606ea6
		-e 's/-fstack-protector[[:alpha:]-]\+//g'	\
f96e0b
		-e 's/--param=ssp-buffer-size=4//g'		\
f96e0b
		-e 's/-mregparm=3/-mregparm=4/g'		\
f96e0b
		-e 's/-fexceptions//g'				\
f96e0b
		-e 's/-m64//g'					\
f96e0b
		-e 's/-fasynchronous-unwind-tables//g'		\
f96e0b
		-e 's/-mcpu=power7/-mcpu=power6/g'		\
ecb9bb
		-e 's/^/ -fno-strict-aliasing -std=gnu99 /' )"	\
f96e0b
	TARGET_LDFLAGS=-static					\
f96e0b
        --with-platform=%{platform}				\
f96e0b
	--with-grubdir=%{name}					\
f96e0b
        --program-transform-name=s,grub,%{name},		\
f96e0b
	--disable-grub-mount					\
f96e0b
	--disable-werror
39700a
f96e0b
make %{?_smp_mflags}
39700a
%endif
f96e0b
f96e0b
sed -i -e 's,(grub),(%{name}),g' \
f96e0b
	-e 's,grub.info,%{name}.info,g' \
f96e0b
	-e 's,\* GRUB:,* GRUB2:,g' \
f96e0b
	-e 's,/boot/grub/,/boot/%{name}/,g' \
f96e0b
	-e 's,\([^-]\)grub-\([a-z]\),\1%{name}-\2,g' \
f96e0b
	docs/grub.info
f96e0b
sed -i -e 's,grub-dev,%{name}-dev,g' docs/grub-dev.info
f96e0b
f96e0b
/usr/bin/makeinfo --html --no-split -I docs -o grub-dev.html docs/grub-dev.texi
f96e0b
/usr/bin/makeinfo --html --no-split -I docs -o grub.html docs/grub.texi
f96e0b
sed -i	-e 's,/boot/grub/,/boot/%{name}/,g' \
f96e0b
	-e 's,\([^-]\)grub-\([a-z]\),\1%{name}-\2,g' \
f96e0b
	grub.html
f96e0b
f96e0b
%install
f96e0b
set -e
f96e0b
rm -fr $RPM_BUILD_ROOT
f96e0b
f96e0b
%ifarch %{efiarchs}
f96e0b
cd grub-efi-%{tarversion}
f96e0b
make DESTDIR=$RPM_BUILD_ROOT install
f96e0b
find $RPM_BUILD_ROOT -iname "*.module" -exec chmod a-x {} \;
f96e0b
f96e0b
# Ghost config file
f96e0b
install -m 755 -d $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/
f96e0b
touch $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/grub.cfg
f96e0b
ln -s ../boot/efi/EFI/%{efidir}/grub.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-efi.cfg
f96e0b
f96e0b
# Install ELF files modules and images were created from into
f96e0b
# the shadow root, where debuginfo generator will grab them from
f96e0b
find $RPM_BUILD_ROOT -name '*.mod' -o -name '*.img' |
f96e0b
while read MODULE
f96e0b
do
f96e0b
        BASE=$(echo $MODULE |sed -r "s,.*/([^/]*)\.(mod|img),\1,")
f96e0b
        # Symbols from .img files are in .exec files, while .mod
f96e0b
        # modules store symbols in .elf. This is just because we
f96e0b
        # have both boot.img and boot.mod ...
f96e0b
        EXT=$(echo $MODULE |grep -q '.mod' && echo '.elf' || echo '.exec')
f96e0b
        TGT=$(echo $MODULE |sed "s,$RPM_BUILD_ROOT,.debugroot,")
f96e0b
#        install -m 755 -D $BASE$EXT $TGT
f96e0b
done
f96e0b
install -m 755 %{grubefiname} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{grubefiname}
f96e0b
install -m 755 %{grubeficdname} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{grubeficdname}
f96e0b
install -D -m 644 unicode.pf2 $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/fonts/unicode.pf2
f96e0b
cd ..
f96e0b
%endif
f96e0b
f96e0b
cd grub-%{tarversion}
39700a
%ifnarch %{efi_only}
f96e0b
make DESTDIR=$RPM_BUILD_ROOT install
f96e0b
f96e0b
# Ghost config file
f96e0b
install -d $RPM_BUILD_ROOT/boot/%{name}
f96e0b
touch $RPM_BUILD_ROOT/boot/%{name}/grub.cfg
f96e0b
ln -s ../boot/%{name}/grub.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.cfg
39700a
%endif
f96e0b
f96e0b
cp -a $RPM_BUILD_ROOT%{_datarootdir}/locale/en\@quot $RPM_BUILD_ROOT%{_datarootdir}/locale/en
f96e0b
f96e0b
# Install ELF files modules and images were created from into
f96e0b
# the shadow root, where debuginfo generator will grab them from
f96e0b
find $RPM_BUILD_ROOT -name '*.mod' -o -name '*.img' |
f96e0b
while read MODULE
f96e0b
do
f96e0b
        BASE=$(echo $MODULE |sed -r "s,.*/([^/]*)\.(mod|img),\1,")
f96e0b
        # Symbols from .img files are in .exec files, while .mod
f96e0b
        # modules store symbols in .elf. This is just because we
f96e0b
        # have both boot.img and boot.mod ...
f96e0b
        EXT=$(echo $MODULE |grep -q '.mod' && echo '.elf' || echo '.exec')
f96e0b
        TGT=$(echo $MODULE |sed "s,$RPM_BUILD_ROOT,.debugroot,")
f96e0b
#        install -m 755 -D $BASE$EXT $TGT
f96e0b
done
f96e0b
f96e0b
mv $RPM_BUILD_ROOT%{_infodir}/grub.info $RPM_BUILD_ROOT%{_infodir}/%{name}.info
f96e0b
mv $RPM_BUILD_ROOT%{_infodir}/grub-dev.info $RPM_BUILD_ROOT%{_infodir}/%{name}-dev.info
f96e0b
rm $RPM_BUILD_ROOT%{_infodir}/dir
f96e0b
f96e0b
# Defaults
f96e0b
mkdir ${RPM_BUILD_ROOT}%{_sysconfdir}/default
f96e0b
touch ${RPM_BUILD_ROOT}%{_sysconfdir}/default/grub
f96e0b
mkdir ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
f96e0b
ln -sf %{_sysconfdir}/default/grub \
f96e0b
	${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/grub
f96e0b
f96e0b
cd ..
f96e0b
%find_lang grub
f96e0b
f96e0b
# Fedora theme in /boot/grub2/themes/system/
f96e0b
cd $RPM_BUILD_ROOT
f96e0b
tar xjf %{SOURCE5}
f96e0b
$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"
f96e0b
$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"
f96e0b
$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"
f96e0b
f96e0b
# Make selinux happy with exec stack binaries.
f96e0b
mkdir ${RPM_BUILD_ROOT}%{_sysconfdir}/prelink.conf.d/
f96e0b
cat << EOF > ${RPM_BUILD_ROOT}%{_sysconfdir}/prelink.conf.d/grub2.conf
f96e0b
# these have execstack, and break under selinux
f96e0b
-b /usr/bin/grub2-script-check
f96e0b
-b /usr/bin/grub2-mkrelpath
f96e0b
-b /usr/bin/grub2-fstest
f96e0b
-b /usr/sbin/grub2-bios-setup
f96e0b
-b /usr/sbin/grub2-probe
f96e0b
-b /usr/sbin/grub2-sparc64-setup
f96e0b
EOF
f96e0b
39700a
%ifarch %{efiarchs}
39700a
mkdir -p boot/efi/EFI/%{efidir}/
39700a
ln -s /boot/efi/EFI/%{efidir}/grubenv boot/grub2/grubenv
39700a
%endif
39700a
f96e0b
%clean    
f96e0b
rm -rf $RPM_BUILD_ROOT
f96e0b
ecb9bb
%pre tools
4b8b04
if [ -f /boot/grub2/user.cfg ]; then
4b8b04
    if grep -q '^GRUB_PASSWORD=' /boot/grub2/user.cfg ; then
4b8b04
	sed -i 's/^GRUB_PASSWORD=/GRUB2_PASSWORD=/' /boot/grub2/user.cfg
4b8b04
    fi
4b8b04
elif [ -f /boot/efi/EFI/%{efidir}/user.cfg ]; then
4b8b04
    if grep -q '^GRUB_PASSWORD=' /boot/efi/EFI/%{efidir}/user.cfg ; then
4b8b04
	sed -i 's/^GRUB_PASSWORD=/GRUB2_PASSWORD=/' \
4b8b04
	    /boot/efi/EFI/%{efidir}/user.cfg
4b8b04
    fi
4b8b04
elif [ -f /etc/grub.d/01_users ] && \
4b8b04
	grep -q '^password_pbkdf2 root' /etc/grub.d/01_users ; then
4b8b04
    if [ -f /boot/efi/EFI/%{efidir}/grub.cfg ]; then
4b8b04
	# on EFI we don't get permissions on the file, but
4b8b04
	# the directory is protected.
4b8b04
	grep '^password_pbkdf2 root' /etc/grub.d/01_users | \
4b8b04
		sed 's/^password_pbkdf2 root \(.*\)$/GRUB2_PASSWORD=\1/' \
4b8b04
	    > /boot/efi/EFI/%{efidir}/user.cfg
4b8b04
    fi
4b8b04
    if [ -f /boot/grub2/grub.cfg ]; then
4b8b04
	install -m 0600 /dev/null /boot/grub2/user.cfg
4b8b04
	chmod 0600 /boot/grub2/user.cfg
4b8b04
	grep '^password_pbkdf2 root' /etc/grub.d/01_users | \
4b8b04
		sed 's/^password_pbkdf2 root \(.*\)$/GRUB2_PASSWORD=\1/' \
4b8b04
	    > /boot/grub2/user.cfg
ecb9bb
    fi
ecb9bb
fi
ecb9bb
ecb9bb
%post tools
f96e0b
if [ "$1" = 1 ]; then
f96e0b
	/sbin/install-info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz || :
f96e0b
	/sbin/install-info --info-dir=%{_infodir} %{_infodir}/%{name}-dev.info.gz || :
f96e0b
fi
f96e0b
f96e0b
%triggerun -- grub2 < 1:1.99-4
f96e0b
# grub2 < 1.99-4 removed a number of essential files in postun. To fix upgrades
f96e0b
# from the affected grub2 packages, we first back up the files in triggerun and
f96e0b
# later restore them in triggerpostun.
f96e0b
# https://bugzilla.redhat.com/show_bug.cgi?id=735259
f96e0b
f96e0b
# Back up the files before uninstalling old grub2
f96e0b
mkdir -p /boot/grub2.tmp &&
f96e0b
mv -f /boot/grub2/*.mod \
f96e0b
      /boot/grub2/*.img \
f96e0b
      /boot/grub2/*.lst \
f96e0b
      /boot/grub2/device.map \
f96e0b
      /boot/grub2.tmp/ || :
f96e0b
f96e0b
%triggerpostun -- grub2 < 1:1.99-4
f96e0b
# ... and restore the files.
f96e0b
test ! -f /boot/grub2/device.map &&
f96e0b
test -d /boot/grub2.tmp &&
f96e0b
mv -f /boot/grub2.tmp/*.mod \
f96e0b
      /boot/grub2.tmp/*.img \
f96e0b
      /boot/grub2.tmp/*.lst \
f96e0b
      /boot/grub2.tmp/device.map \
f96e0b
      /boot/grub2/ &&
f96e0b
rm -r /boot/grub2.tmp/ || :
f96e0b
ecb9bb
%preun tools
f96e0b
if [ "$1" = 0 ]; then
f96e0b
	/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz || :
f96e0b
	/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/%{name}-dev.info.gz || :
f96e0b
fi
f96e0b
39700a
%ifnarch %{efi_only}
f96e0b
%files -f grub.lang
f96e0b
%defattr(-,root,root,-)
f96e0b
%{_libdir}/grub/*-%{platform}/
f96e0b
%config(noreplace) %{_sysconfdir}/%{name}.cfg
f96e0b
%ghost %config(noreplace) /boot/%{name}/grub.cfg
f96e0b
%doc grub-%{tarversion}/COPYING
39700a
%config(noreplace) %ghost /boot/grub2/grubenv
39700a
%endif
f96e0b
f96e0b
%ifarch %{efiarchs}
f96e0b
%files efi
f96e0b
%defattr(-,root,root,-)
f96e0b
%config(noreplace) %{_sysconfdir}/%{name}-efi.cfg
f96e0b
%attr(0755,root,root)/boot/efi/EFI/%{efidir}
f96e0b
%attr(0755,root,root)/boot/efi/EFI/%{efidir}/fonts
f96e0b
%ghost %config(noreplace) /boot/efi/EFI/%{efidir}/grub.cfg
f96e0b
%doc grub-%{tarversion}/COPYING
39700a
/boot/grub2/grubenv
39700a
# I know 0700 seems strange, but it lives on FAT so that's what it'll
39700a
# get no matter what we do.
39700a
%config(noreplace) %ghost %attr(0700,root,root)/boot/efi/EFI/%{efidir}/grubenv
39700a
39700a
%files efi-modules
39700a
%defattr(-,root,root,-)
39700a
%{_libdir}/grub/%{grubefiarch}
f96e0b
%endif
f96e0b
f96e0b
%files tools -f grub.lang
f96e0b
%defattr(-,root,root,-)
f96e0b
%dir %{_libdir}/grub/
f96e0b
%dir %{_datarootdir}/grub/
f96e0b
%dir %{_datarootdir}/grub/themes
f96e0b
%{_datarootdir}/grub/*
606ea6
%{_sbindir}/%{name}-bios-setup
23d2ea
%{_sbindir}/%{name}-get-kernel-settings
f96e0b
%{_sbindir}/%{name}-install
606ea6
%{_sbindir}/%{name}-macbless
606ea6
%{_sbindir}/%{name}-mkconfig
606ea6
%{_sbindir}/%{name}-ofpathname
f96e0b
%{_sbindir}/%{name}-probe
f96e0b
%{_sbindir}/%{name}-reboot
57a8ef
%{_sbindir}/%{name}-rpm-sort
f96e0b
%{_sbindir}/%{name}-set-default
ecb9bb
%{_sbindir}/%{name}-setpassword
f96e0b
%{_sbindir}/%{name}-sparc64-setup
f96e0b
%{_bindir}/%{name}-editenv
606ea6
%{_bindir}/%{name}-file
f96e0b
%{_bindir}/%{name}-fstest
606ea6
%{_bindir}/%{name}-glue-efi
f96e0b
%{_bindir}/%{name}-kbdcomp
f96e0b
%{_bindir}/%{name}-menulst2cfg
f96e0b
%{_bindir}/%{name}-mkfont
f96e0b
%{_bindir}/%{name}-mkimage
606ea6
%{_bindir}/%{name}-mklayout
606ea6
%{_bindir}/%{name}-mknetdir
f96e0b
%{_bindir}/%{name}-mkpasswd-pbkdf2
f96e0b
%{_bindir}/%{name}-mkrelpath
f96e0b
%ifnarch %{sparc}
f96e0b
%{_bindir}/%{name}-mkrescue
f96e0b
%endif
606ea6
%{_bindir}/%{name}-mkstandalone
606ea6
%{_bindir}/%{name}-render-label
f96e0b
%{_bindir}/%{name}-script-check
606ea6
%{_bindir}/%{name}-syslinux2cfg
f96e0b
%{_datarootdir}/bash-completion/completions/grub
f96e0b
%{_sysconfdir}/prelink.conf.d/grub2.conf
f96e0b
%attr(0700,root,root) %dir %{_sysconfdir}/grub.d
f96e0b
%config %{_sysconfdir}/grub.d/??_*
f96e0b
%{_sysconfdir}/grub.d/README
f96e0b
%attr(0644,root,root) %ghost %config(noreplace) %{_sysconfdir}/default/grub
f96e0b
%{_sysconfdir}/sysconfig/grub
ecb9bb
%attr(0700,root,root) %dir /boot/%{name}
f96e0b
%dir /boot/%{name}/themes/
f96e0b
%dir /boot/%{name}/themes/system
f96e0b
%exclude /boot/%{name}/themes/system/*
f96e0b
%exclude %{_datarootdir}/grub/themes/
f96e0b
%{_infodir}/%{name}*
f96e0b
%doc grub-%{tarversion}/COPYING grub-%{tarversion}/INSTALL
f96e0b
%doc grub-%{tarversion}/NEWS grub-%{tarversion}/README
f96e0b
%doc grub-%{tarversion}/THANKS grub-%{tarversion}/TODO
f96e0b
%doc grub-%{tarversion}/grub.html
f96e0b
%doc grub-%{tarversion}/grub-dev.html grub-%{tarversion}/docs/font_char_metrics.png
39700a
%doc %{_mandir}/man1/*
23d2ea
%doc %{_mandir}/man3/*
39700a
%doc %{_mandir}/man8/*
f96e0b
%dir /boot/%{name}/themes/
f96e0b
%dir %{_datarootdir}/grub/themes
39700a
%exclude %{_datarootdir}/grub/themes/starfield
f96e0b
f96e0b
%changelog
118713
* Sun Nov 20 2016 Johnny Hughes <johnny@centos.org> - 2.02-0.44
118713
- Roll in CentOS Secureboot keys
118713
- Move the edidir to be CentOS, so people can co-install fedora, rhel and centos
118713
- add 0001-centos-grub2-password-fix.patch
118713
23d2ea
* Mon Aug 29 2016 Peter Jones <pjones@redhat.com> - 2.02-0.44
23d2ea
- Work around tftp servers that don't work with multiple consecutive slashes in
23d2ea
  file paths.
23d2ea
  Resolves: rhbz#1217243
23d2ea
23d2ea
* Thu Aug 25 2016 Peter Jones <pjones@redhat.com> - 2.02-0.42
23d2ea
- Make grub2-mkconfig export grub2-get-kernel-settings variables correctly.
23d2ea
  Related: rhbz#1226325
23d2ea
23d2ea
* Tue Aug 23 2016 Peter Jones <pjones@redhat.com> - 2.02-0.42
23d2ea
- Rebuild in the right build root.  Again.
23d2ea
  Related: rhbz#1273974
23d2ea
23d2ea
* Wed Jul 13 2016 Peter Jones <pjones@redhat.com> - 2.02-0.41
23d2ea
- Build with coverity patch I missed last time.
23d2ea
  Related: rhbz#1226325
23d2ea
23d2ea
* Wed Jul 13 2016 rmarshall@redhat.com - 2.02-0.40
23d2ea
- Build with coverity patches.
23d2ea
  Related: rhbz#1226325
23d2ea
23d2ea
* Wed Jul 13 2016 Peter Jones <pjones@redhat.com>
23d2ea
- Remove our patch to force a paricular uefi network interface
23d2ea
  Related: rhbz#1273974
23d2ea
  Related: rhbz#1277599
23d2ea
  Related: rhbz#1298765
23d2ea
- Update some more coverity issues
23d2ea
  Related: rhbz#1226325
23d2ea
  Related: rhbz#1154226
23d2ea
23d2ea
* Mon Jul 11 2016 rmarshall@redhat.com - 2.02-0.39
23d2ea
- Fix all issues discovered during coverity scan. 
23d2ea
  Related: rhbz#1154226
23d2ea
- Fix a couple compiler and CLANG issues discovered during coverity scan.
23d2ea
  Related: rhbz#1154226
23d2ea
- Fix the last few CLANG issues and a deadcode issue discovered by the
23d2ea
  coverity scan.
23d2ea
  Related: rhbz#1154226
23d2ea
23d2ea
* Fri Jul 01 2016 Peter Jones <pjones@redhat.com> - 2.02-0.38
23d2ea
- Pick the right build target.  Again.
23d2ea
  Related: rhbz#1226325
23d2ea
23d2ea
* Tue Jun 21 2016 rmarshall@redhat.com - 2.02-0.37
23d2ea
- Update fix for rhbz#1212114 to reflect the move to handling this case
23d2ea
  in anaconda.
23d2ea
  Related: rhbz#1315468
23d2ea
  Resolves: rhbz#1261926
23d2ea
- Add grub2-get-kernel-settings to allow grub2-mkconfig to take grubby
23d2ea
  configuration changes into account.
23d2ea
  Resolves: rhbz#1226325
23d2ea
23d2ea
* Fri Jun 17 2016 Peter Jones <pjones@redhat.com> - 2.02-0.36
23d2ea
- Better support for EFI network booting with dhcpv6.
23d2ea
  Resolves: rhbz#1154226
23d2ea
- Back out a duplicate change resulting in some EFI network firmware drivers
23d2ea
  not working properly.
23d2ea
  Related: rhbz#1273974
23d2ea
  Related: rhbz#1277599
23d2ea
  Related: rhbz#1298765
23d2ea
23d2ea
* Mon Jun 06 2016 Peter Jones <pjones@redhat.com> - 2.02-0.35
23d2ea
- Don't use legacy methods to make device node variables.
23d2ea
  Resolves: rhbz#1279599
23d2ea
- Don't pad initramfs with zeros
23d2ea
  Resolves: rhbz#1219864
23d2ea
23d2ea
* Thu Apr 28 2016 rmarshall@redhat.com 2.02-0.34
23d2ea
- Exit grub-mkconfig with a proper code when the new configuration would be
23d2ea
  invalid.
23d2ea
  Resolves: rhbz#1252311
23d2ea
- Warn users if grub-mkconfig needs to be run to add support for GRUB
23d2ea
  passwords.
23d2ea
  Resolves: rhbz#1290803
23d2ea
- Fix the information in the --help and man pages for grub-setpassword
23d2ea
  Resolves: rhbz#1290799
23d2ea
- Fix issue where shell substitution expected non-translated output when
23d2ea
  setting a bootloader password.
23d2ea
  Resolves: rhbz#1294243
23d2ea
- Fix an issue causing memory regions with unknown types to be marked available
23d2ea
  through a series of backports from upstream.
23d2ea
  Resolves: rhbz#1288608
ebcbef
4b8b04
* Thu Dec 10 2015 Peter Jones <pjones@redhat.com> - 2.02-0.33
4b8b04
- Don't remove 01_users, it's the wrong thing to do.
23d2ea
  Related: rhbz#1284370
4b8b04
4b8b04
* Wed Dec 09 2015 Peter Jones <pjones@redhat.com> - 2.02-0.32
4b8b04
- Rebuild for .z so the release number is different.
23d2ea
  Related: rhbz#1284370
4b8b04
4b8b04
* Wed Dec 09 2015 Peter Jones <pjones@redhat.com> - 2.02-0.31
4b8b04
- More work on handling of GRUB2_PASSWORD
23d2ea
  Resolves: rhbz#1284370
4b8b04
4b8b04
* Tue Dec 08 2015 Peter Jones <pjones@redhat.com> - 2.02-0.30
4b8b04
- Fix security issue when reading username and password
4b8b04
  Resolves: CVE-2015-8370
4b8b04
- Do a better job of handling GRUB_PASSWORD
23d2ea
  Resolves: rhbz#1284370
2cfb35
ecb9bb
* Fri Oct 09 2015 Peter Jones <pjones@redhat.com> - 2.02-0.29
ecb9bb
- Fix DHCP6 timeouts due to failed network stack once more.
ecb9bb
  Resolves: rhbz#1267139
ecb9bb
ecb9bb
* Thu Sep 17 2015 Peter Jones <pjones@redhat.com> - 2.02-0.28
ecb9bb
- Once again, rebuild for the right build target.
ecb9bb
  Resolves: CVE-2015-5281
ecb9bb
ecb9bb
* Thu Sep 17 2015 Peter Jones <pjones@redhat.com> - 2.02-0.27
ecb9bb
- Remove multiboot and multiboot2 modules from the .efi builds; they
ecb9bb
  should never have been there.
ecb9bb
  Resolves: CVE-2015-5281
ecb9bb
ecb9bb
* Mon Sep 14 2015 Peter Jones <pjones@redhat.com> - 2.02-0.26
ecb9bb
- Be more aggressive about trying to make sure we use the configured SNP
ecb9bb
  device in UEFI.
ecb9bb
  Resolves: rhbz#1257475
ecb9bb
ecb9bb
* Wed Aug 05 2015 Robert Marshall <rmarshall@redhat.com> - 2.02-0.25
ecb9bb
- Force file sync to disk on ppc64le machines.
ecb9bb
  Resolves: rhbz#1212114
ecb9bb
ecb9bb
* Mon Aug 03 2015 Peter Jones <pjones@redhat.com> - 2.02-0.24
ecb9bb
- Undo 0.23 and fix it a different way.
ecb9bb
  Resolves: rhbz#1124074
ecb9bb
ecb9bb
* Thu Jul 30 2015 Peter Jones <pjones@redhat.com> - 2.02-0.23
ecb9bb
- Reverse kernel sort order so they're displayed correctly.
ecb9bb
  Resolves: rhbz#1124074
ecb9bb
ecb9bb
* Wed Jul 08 2015 Peter Jones <pjones@redhat.com> - 2.02-0.22
ecb9bb
- Make upgrades work reasonably well with grub2-setpassword .
ecb9bb
  Related: rhbz#985962
ecb9bb
ecb9bb
* Tue Jul 07 2015 Peter Jones <pjones@redhat.com> - 2.02-0.21
ecb9bb
- Add a simpler grub2 password config tool
ecb9bb
  Related: rhbz#985962
ecb9bb
- Some more coverity nits.
ecb9bb
ecb9bb
* Mon Jul 06 2015 Peter Jones <pjones@redhat.com> - 2.02-0.20
ecb9bb
- Deal with some coverity nits.
ecb9bb
  Related: rhbz#1215839
ecb9bb
  Related: rhbz#1124074
ecb9bb
ecb9bb
* Mon Jul 06 2015 Peter Jones <pjones@redhat.com> - 2.02-0.19
ecb9bb
- Rebuild for Aarch64
ecb9bb
- Deal with some coverity nits.
ecb9bb
  Related: rhbz#1215839
ecb9bb
  Related: rhbz#1124074
ecb9bb
ecb9bb
* Thu Jul 02 2015 Peter Jones <pjones@redhat.com> - 2.02-0.18
ecb9bb
- Update for an rpmdiff problem with one of the man pages.
ecb9bb
  Related: rhbz#1124074
ecb9bb
ecb9bb
* Tue Jun 30 2015 Peter Jones <pjones@redhat.com> - 2.02-0.17
ecb9bb
- Handle ipv6 better
ecb9bb
  Resolves: rhbz#1154226
ecb9bb
- On UEFI, use SIMPLE_NETWORK_PROTOCOL when we can.
ecb9bb
  Resolves: rhbz#1233378
ecb9bb
- Handle rssd disk drives in grub2 utilities.
ecb9bb
  Resolves: rhbz#1087962
ecb9bb
- Handle xfs CRC disk format.
ecb9bb
  Resolves: rhbz#1001279
ecb9bb
- Calibrate TCS using the EFI Stall service
ecb9bb
  Resolves: rhbz#1150698
ecb9bb
- Fix built-in gpg verification when using TFTP
ecb9bb
  Resolves: rhbz#1167977
ecb9bb
- Generate better stanza titles so grubby can find them easier.
ecb9bb
  Resolves: rhbz#1177003
ecb9bb
- Don't strip the fw_path variable twice when we're using EFI networking.
ecb9bb
  Resolves: rhbz#1211101
ecb9bb
ecb9bb
* Mon May 11 2015 Peter Jones <pjones@redhat.com> - 2.02-0.17
ecb9bb
- Document network boot paths better
ecb9bb
  Resolves: rhbz#1148650
57a8ef
- Use an rpm-based version sorted in grub2-mkconfig
ecb9bb
  Resolves: rhbz#1124074
c69518
39700a
* Thu Oct 09 2014 Peter Jones <pjones@redhat.com> - 2.02-0.16
39700a
- ... and build it on the right target.
39700a
  Related: rhbz#1148652
39700a
39700a
* Thu Oct 09 2014 Peter Jones <pjones@redhat.com> - 2.02-0.15
39700a
- Make netbooting do a better job of picking the config path *again*.
39700a
  Resolves: rhbz#1148652
39700a
39700a
* Sat Oct 04 2014 Peter Jones <pjones@redhat.com> - 2.02-0.14
39700a
- Be sure to *install* gcdaa64.efi
39700a
  Related: rhbz#1100048
39700a
39700a
* Fri Sep 26 2014 Peter Jones <pjones@redhat.com> - 2.02-0.13
39700a
- Make sure to build a gcdaa64.efi
39700a
  Related: rhbz#1100048
39700a
39700a
* Tue Sep 23 2014 Peter Jones <pjones@redhat.com> - 2.02-0.12
39700a
- Fix minor problems rpmdiff found.
39700a
  Related: rhbz#1125540
39700a
39700a
* Mon Sep 22 2014 Peter Jones <pjones@redhat.com> - 2.02-0.11
39700a
- Fix grub2 segfault when root isn't set.
39700a
  Resolves: rhbz#1084536
39700a
- Make the aarch64 loader be SB-aware.
39700a
  Related: rhbz#1100048
39700a
- Enable regexp module
39700a
  Resolves: rhbz#1125916
39700a
39700a
* Thu Sep 04 2014 Peter Jones <pjones@redhat.com> - 2.02-0.10
39700a
- Make editenv utilities (grub2-editenv, grub2-set-default, etc.) from
39700a
  non-UEFI builds work with UEFI builds as well, since they're shared
39700a
  from grub2-tools.
39700a
  Resolves: rhbz#1119943
39700a
- Make more grub2-mkconfig generate menu entries with the OS name and version
39700a
  included.
39700a
  Resolves: rhbz#996794
39700a
- Minimize the sort ordering for .debug and -rescue- kernels.
39700a
  Resolves: rhbz#1065360
39700a
- Add GRUB_DISABLE_UUID to disable filesystem searching by UUID.
39700a
  Resolves: rhbz#1027833
39700a
- Allow "fallback" to specify titles like the documentation says
39700a
  Resolves: rhbz#1026084
39700a
39700a
* Wed Aug 27 2014 Peter Jones <pjones@redhat.com> - 2.02-0.9.1
39700a
- A couple of patches for aarch64 got missed.
39700a
  Related: rhbz#967937
39700a
39700a
* Wed Aug 27 2014 Peter Jones <pjones@redhat.com> - 2.02-0.9
39700a
- Once again, I have built with the wrong target.
39700a
  Related: rhbz#1125540
39700a
  Resolves: rhbz#967937
39700a
39700a
* Fri Aug 22 2014 Peter Jones <pjones@redhat.com> - 2.02-0.8
39700a
- Add patches for ppc64le
39700a
  Related: rhbz#1125540
Karanbir Singh 2549ce
606ea6
* Thu Mar 20 2014 Peter Jones <pjones@redhat.com> - 2.02-0.2.10
606ea6
- Fix GRUB_DISABLE_SUBMENU one more time.
606ea6
  Resolves: rhbz#1063414
606ea6
606ea6
* Tue Mar 18 2014 Peter Jones <pjones@redhat.com> - 2.02-0.2.9
606ea6
- Not sure why the right build target wasn't used *again*.
606ea6
  Resolves: rhbz#1073337
606ea6
606ea6
* Wed Mar 12 2014 Peter Jones <pjones@redhat.com> - 2.02-0.2.8
606ea6
- Make GRUB_DISABLE_SUBMENU work again.
606ea6
  Resolves: rhbz#1063414
606ea6
606ea6
* Thu Mar 06 2014 Peter Jones <pjones@redhat.com> - 2.02-0.2.7
606ea6
- Build on the right target.
606ea6
  Resolves: rhbz#1073337
606ea6
606ea6
* Wed Mar 05 2014 Peter Jones <pjones@redhat.com> - 2.02-0.2.6
606ea6
- Fix minor man page install bug
606ea6
  Related: rhbz#948847
606ea6
606ea6
* Tue Mar 04 2014 Peter Jones <pjones@redhat.com> - 2.02-0.2.5
606ea6
- Add man pages for common grub utilities.
606ea6
  Resolves: rhbz#948847
606ea6
- Fix shift key behavior on UEFI.
606ea6
  Resolves: rhbz#1068215
606ea6
606ea6
* Tue Feb 18 2014 Peter Jones <pjones@redhat.com> - 2.02-0.2.4
606ea6
- Build against the right target.
606ea6
  Related: rhbz#1064424
606ea6
606ea6
* Tue Feb 18 2014 Peter Jones <pjones@redhat.com> - 2.02-0.2.3
606ea6
- Don't emit "Booting <foo>" message.
606ea6
  Resolves: rhbz#1023142
606ea6
- Don't require a password for booting, only for editing entries.
606ea6
  Resolves: rhbz#1030176
606ea6
- Several network fixes from IBM
606ea6
  Resolves: rhbz#1056324
606ea6
- Support NVMe device names
606ea6
  Resolves: rhbz#1019660
606ea6
- Make control keys work on UEFI systems.
606ea6
  Resolves: rhbz#1056035
606ea6
606ea6
* Fri Jan 31 2014 Peter Jones <pjones@redhat.com> - 2.02-0.2.2
606ea6
- Fix FORTIFY_SOURCE for util/
606ea6
  Related: rhbz#1049047
606ea6
606ea6
* Tue Jan 21 2014 Peter Jones <pjones@redhat.com> - 2.02-0.2.1
606ea6
- Don't destroy symlinks when re-writing grub.cfg
606ea6
  Resolves: rhbz#1032182
606ea6
606ea6
* Mon Jan 06 2014 Peter Jones <pjones@redhat.com> - 2.02-0.2
606ea6
- Update to grub-2.02~beta2
606ea6
606ea6
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:2.00-23
606ea6
- Mass rebuild 2013-12-27
606ea6
f96e0b
* Wed Nov 20 2013 Peter Jones <pjones@redhat.com> - 2.00-22.10
f96e0b
- Rebuild with correct release number and with correct target.
f96e0b
  Related: rhbz#1032530
f96e0b
f96e0b
* Wed Nov 20 2013 Daniel Mach <dmach@redhat.com> - 2.00-22.9.1
f96e0b
- Enable tftp module
f96e0b
  Resolves: rhbz#1032530
f96e0b
f96e0b
* Thu Nov 14 2013 Peter Jones <pjones@redhat.com> - 2.00-22.9
f96e0b
- Make "linux16" happen on x86_64 machines as well.
f96e0b
  Resolves: rhbz#880840
f96e0b
f96e0b
* Wed Nov 06 2013 Peter Jones <pjones@redhat.com> - 2.00-22.8
f96e0b
- Rebuild with correct build target for signing.
f96e0b
  Related: rhbz#996863
f96e0b
f96e0b
* Tue Nov 05 2013 Peter Jones <pjones@redhat.com> - 2.00-22.7
f96e0b
- Build with -mcpu=power6 as we did before redhat-rpm-config changed
f96e0b
  Resolves: rhbz#1026368
f96e0b
f96e0b
* Thu Oct 31 2013 Peter Jones <pjones@redhat.com> - 2.00-22.6
f96e0b
- Make linux16 work with the shell better.
f96e0b
  Resolves: rhbz#880840
f96e0b
f96e0b
* Thu Oct 31 2013 Peter Jones <pjones@redhat.com> - 2.00-22.5
f96e0b
- Rebuild because we were clobbering signing in the spec file...
f96e0b
  Related: rhbz#1017855
f96e0b
f96e0b
* Thu Oct 31 2013 Peter Jones <pjones@redhat.com> - 2.00-22.4
f96e0b
- Rebuild because signing didn't work.
f96e0b
  Related: rhbz#1017855
f96e0b
f96e0b
* Mon Oct 28 2013 Peter Jones <pjones@redhat.com> - 2.00-22.3
f96e0b
- Use linux16 when appropriate:
f96e0b
  Resolves: rhbz#880840
f96e0b
- Enable pager by default:
f96e0b
  Resolves: rhbz#985860
f96e0b
- Don't ask the user to hit keys that won't work.
f96e0b
  Resolves: rhbz#987443
f96e0b
- Sign grub2 during builds
f96e0b
  Resolves: rhbz#1017855
f96e0b
f96e0b
* Thu Aug 29 2013 Peter Jones <pjones@redhat.com> - 2.00-22.2
f96e0b
- Fix minor rpmdiff complaints.
f96e0b
f96e0b
* Wed Aug 07 2013 Peter Jones <pjones@redhat.com> - 2.00-22.1
f96e0b
- Fix url so PkgWrangler doesn't go crazy.
f96e0b
f96e0b
* Fri Jun 21 2013 Peter Jones <pjones@redhat.com> - 2.00-22
f96e0b
- Fix linewrapping in edit menu.
f96e0b
  Resolves: rhbz #976643
f96e0b
f96e0b
* Thu Jun 20 2013 Peter Jones <pjones@redhat.com> - 2.00-21
f96e0b
- Fix obsoletes to pull in -starfield-theme subpackage when it should.
f96e0b
f96e0b
* Fri Jun 14 2013 Peter Jones <pjones@redhat.com> - 2.00-20
f96e0b
- Put the theme entirely ento the subpackage where it belongs (#974667)
f96e0b
f96e0b
* Wed Jun 12 2013 Peter Jones <pjones@redhat.com> - 2.00-19
f96e0b
- Rebase to upstream snapshot.
f96e0b
- Fix PPC build error (#967862)
f96e0b
- Fix crash on net_bootp command (#960624)
f96e0b
- Reset colors on ppc when appropriate (#908519)
f96e0b
- Left align "Loading..." messages (#908492)
f96e0b
- Fix probing of SAS disks on PPC (#953954)
f96e0b
- Add support for UEFI OSes returned by os-prober
f96e0b
- Disable "video" mode on PPC for now (#973205)
f96e0b
- Make grub fit better into the boot sequence, visually (#966719)
f96e0b
f96e0b
* Fri May 10 2013 Matthias Clasen <mclasen@redhat.com> - 2.00-18
f96e0b
- Move the starfield theme to a subpackage (#962004)
f96e0b
- Don't allow SSE or MMX on UEFI builds (#949761)
f96e0b
f96e0b
* Wed Apr 24 2013 Peter Jones <pjones@redhat.com> - 2.00-17.pj0
f96e0b
- Rebase to upstream snapshot.
f96e0b
f96e0b
* Thu Apr 04 2013 Peter Jones <pjones@redhat.com> - 2.00-17
f96e0b
- Fix booting from drives with 4k sectors on UEFI.
f96e0b
- Move bash completion to new location (#922997)
f96e0b
- Include lvm support for /boot (#906203)
f96e0b
f96e0b
* Thu Feb 14 2013 Peter Jones <pjones@redhat.com> - 2.00-16
f96e0b
- Allow the user to disable submenu generation
f96e0b
- (partially) support BLS-style configuration stanzas.
f96e0b
f96e0b
* Tue Feb 12 2013 Peter Jones <pjones@redhat.com> - 2.00-15.pj0
f96e0b
- Add various config file related changes.
f96e0b
f96e0b
* Thu Dec 20 2012 Dennis Gilmore <dennis@ausil.us> - 2.00-15
f96e0b
- bump nvr
f96e0b
f96e0b
* Mon Dec 17 2012 Karsten Hopp <karsten@redhat.com> 2.00-14
f96e0b
- add bootpath device to the device list (pfsmorigo, #886685)
f96e0b
f96e0b
* Tue Nov 27 2012 Peter Jones <pjones@redhat.com> - 2.00-13
f96e0b
- Add vlan tag support (pfsmorigo, #871563)
f96e0b
- Follow symlinks during PReP installation in grub2-install (pfsmorigo, #874234)
f96e0b
- Improve search paths for config files on network boot (pfsmorigo, #873406)
f96e0b
f96e0b
* Tue Oct 23 2012 Peter Jones <pjones@redhat.com> - 2.00-12
f96e0b
- Don't load modules when grub transitions to "normal" mode on UEFI.
f96e0b
f96e0b
* Mon Oct 22 2012 Peter Jones <pjones@redhat.com> - 2.00-11
f96e0b
- Rebuild with newer pesign so we'll get signed with the final signing keys.
f96e0b
f96e0b
* Thu Oct 18 2012 Peter Jones <pjones@redhat.com> - 2.00-10
f96e0b
- Various PPC fixes.
f96e0b
- Fix crash fetching from http (gustavold, #860834)
f96e0b
- Issue separate dns queries for ipv4 and ipv6 (gustavold, #860829)
f96e0b
- Support IBM CAS reboot (pfsmorigo, #859223)
f96e0b
- Include all modules in the core image on ppc (pfsmorigo, #866559)
f96e0b
f96e0b
* Mon Oct 01 2012 Peter Jones <pjones@redhat.com> - 1:2.00-9
f96e0b
- Work around bug with using "\x20" in linux command line.
f96e0b
  Related: rhbz#855849
f96e0b
f96e0b
* Thu Sep 20 2012 Peter Jones <pjones@redhat.com> - 2.00-8
f96e0b
- Don't error on insmod on UEFI/SB, but also don't do any insmodding.
f96e0b
- Increase device path size for ieee1275
f96e0b
  Resolves: rhbz#857936
f96e0b
- Make network booting work on ieee1275 machines.
f96e0b
  Resolves: rhbz#857936
f96e0b
f96e0b
* Wed Sep 05 2012 Matthew Garrett <mjg@redhat.com> - 2.00-7
f96e0b
- Add Apple partition map support for EFI
f96e0b
f96e0b
* Thu Aug 23 2012 David Cantrell <dcantrell@redhat.com> - 2.00-6
f96e0b
- Only require pesign on EFI architectures (#851215)
f96e0b
f96e0b
* Tue Aug 14 2012 Peter Jones <pjones@redhat.com> - 2.00-5
f96e0b
- Work around AHCI firmware bug in efidisk driver.
f96e0b
- Move to newer pesign macros
f96e0b
- Don't allow insmod if we're in secure-boot mode.
f96e0b
f96e0b
* Wed Aug 08 2012 Peter Jones <pjones@redhat.com>
f96e0b
- Split module lists for UEFI boot vs UEFI cd images.
f96e0b
- Add raid modules for UEFI image (related: #750794)
f96e0b
- Include a prelink whitelist for binaries that need execstack (#839813)
f96e0b
- Include fix efi memory map fix from upstream (#839363)
f96e0b
f96e0b
* Wed Aug 08 2012 Peter Jones <pjones@redhat.com> - 2.00-4
f96e0b
- Correct grub-mkimage invocation to use efidir RPM macro (jwb)
f96e0b
- Sign with test keys on UEFI systems.
f96e0b
- PPC - Handle device paths with commas correctly.
f96e0b
  Related: rhbz#828740
f96e0b
f96e0b
* Wed Jul 25 2012 Peter Jones <pjones@redhat.com> - 2.00-3
f96e0b
- Add some more code to support Secure Boot, and temporarily disable
f96e0b
  some other bits that don't work well enough yet.
f96e0b
  Resolves: rhbz#836695
f96e0b
f96e0b
* Wed Jul 11 2012 Matthew Garrett <mjg@redhat.com> - 2.00-2
f96e0b
- Set a prefix for the image - needed for installer work
f96e0b
- Provide the font in the EFI directory for the same reason
f96e0b
f96e0b
* Thu Jun 28 2012 Peter Jones <pjones@redhat.com> - 2.00-1
f96e0b
- Rebase to grub-2.00 release.
f96e0b
f96e0b
* Mon Jun 18 2012 Peter Jones <pjones@redhat.com> - 2.0-0.37.beta6
f96e0b
- Fix double-free in grub-probe.
f96e0b
f96e0b
* Wed Jun 06 2012 Peter Jones <pjones@redhat.com> - 2.0-0.36.beta6
f96e0b
- Build with patch19 applied.
f96e0b
f96e0b
* Wed Jun 06 2012 Peter Jones <pjones@redhat.com> - 2.0-0.35.beta6
f96e0b
- More ppc fixes.
f96e0b
f96e0b
* Wed Jun 06 2012 Peter Jones <pjones@redhat.com> - 2.0-0.34.beta6
f96e0b
- Add IBM PPC fixes.
f96e0b
f96e0b
* Mon Jun 04 2012 Peter Jones <pjones@redhat.com> - 2.0-0.33.beta6
f96e0b
- Update to beta6.
f96e0b
- Various fixes from mads.
f96e0b
f96e0b
* Fri May 25 2012 Peter Jones <pjones@redhat.com> - 2.0-0.32.beta5
f96e0b
- Revert builddep change for crt1.o; it breaks ppc build.
f96e0b
f96e0b
* Fri May 25 2012 Peter Jones <pjones@redhat.com> - 2.0-0.31.beta5
f96e0b
- Add fwsetup command (pjones)
f96e0b
- More ppc fixes (IBM)
f96e0b
f96e0b
* Tue May 22 2012 Peter Jones <pjones@redhat.com> - 2.0-0.30.beta5
f96e0b
- Fix the /other/ grub2-tools require to include epoch.
f96e0b
f96e0b
* Mon May 21 2012 Peter Jones <pjones@redhat.com> - 2.0-0.29.beta5
f96e0b
- Get rid of efi_uga and efi_gop, favoring all_video instead.
f96e0b
f96e0b
* Mon May 21 2012 Peter Jones <pjones@redhat.com> - 2.0-0.28.beta5
f96e0b
- Name grub.efi something that's arch-appropriate (kiilerix, pjones)
f96e0b
- use EFI/$SOMETHING_DISTRO_BASED/ not always EFI/redhat/grub2-efi/ .
f96e0b
- move common stuff to -tools (kiilerix)
f96e0b
- spec file cleanups (kiilerix)
f96e0b
f96e0b
* Mon May 14 2012 Peter Jones <pjones@redhat.com> - 2.0-0.27.beta5
f96e0b
- Fix module trampolining on ppc (benh)
f96e0b
f96e0b
* Thu May 10 2012 Peter Jones <pjones@redhat.com> - 2.0-0.27.beta5
f96e0b
- Fix license of theme (mizmo)
f96e0b
  Resolves: rhbz#820713
f96e0b
- Fix some PPC bootloader detection IBM problem
f96e0b
  Resolves: rhbz#820722
f96e0b
f96e0b
* Thu May 10 2012 Peter Jones <pjones@redhat.com> - 2.0-0.26.beta5
f96e0b
- Update to beta5.
f96e0b
- Update how efi building works (kiilerix)
f96e0b
- Fix theme support to bring in fonts correctly (kiilerix, pjones)
f96e0b
f96e0b
* Wed May 09 2012 Peter Jones <pjones@redhat.com> - 2.0-0.25.beta4
f96e0b
- Include theme support (mizmo)
f96e0b
- Include locale support (kiilerix)
f96e0b
- Include html docs (kiilerix)
f96e0b
f96e0b
* Thu Apr 26 2012 Peter Jones <pjones@redhat.com> - 2.0-0.24
f96e0b
- Various fixes from Mads Kiilerich
f96e0b
f96e0b
* Thu Apr 19 2012 Peter Jones <pjones@redhat.com> - 2.0-0.23
f96e0b
- Update to 2.00~beta4
f96e0b
- Make fonts work so we can do graphics reasonably
f96e0b
f96e0b
* Thu Mar 29 2012 David Aquilina <dwa@redhat.com> - 2.0-0.22
f96e0b
- Fix ieee1275 platform define for ppc
f96e0b
f96e0b
* Thu Mar 29 2012 Peter Jones <pjones@redhat.com> - 2.0-0.21
f96e0b
- Remove ppc excludearch lines (dwa)
f96e0b
- Update ppc terminfo patch (hamzy)
f96e0b
f96e0b
* Wed Mar 28 2012 Peter Jones <pjones@redhat.com> - 2.0-0.20
f96e0b
- Fix ppc64 vs ppc exclude according to what dwa tells me they need
f96e0b
- Fix version number to better match policy.
f96e0b
f96e0b
* Tue Mar 27 2012 Dan Horák <dan[at]danny.cz> - 1.99-19.2
f96e0b
- Add support for serial terminal consoles on PPC by Mark Hamzy
f96e0b
f96e0b
* Sun Mar 25 2012 Dan Horák <dan[at]danny.cz> - 1.99-19.1
f96e0b
- Use Fix-tests-of-zeroed-partition patch by Mark Hamzy
f96e0b
f96e0b
* Thu Mar 15 2012 Peter Jones <pjones@redhat.com> - 1.99-19
f96e0b
- Use --with-grubdir= on configure to make it behave like -17 did.
f96e0b
f96e0b
* Wed Mar 14 2012 Peter Jones <pjones@redhat.com> - 1.99-18
f96e0b
- Rebase from 1.99 to 2.00~beta2
f96e0b
f96e0b
* Wed Mar 07 2012 Peter Jones <pjones@redhat.com> - 1.99-17
f96e0b
- Update for newer autotools and gcc 4.7.0
f96e0b
  Related: rhbz#782144
f96e0b
- Add /etc/sysconfig/grub link to /etc/default/grub
f96e0b
  Resolves: rhbz#800152
f96e0b
- ExcludeArch s390*, which is not supported by this package.
f96e0b
  Resolves: rhbz#758333
f96e0b
f96e0b
* Fri Feb 17 2012 Orion Poplawski <orion@cora.nwra.com> - 1:1.99-16
f96e0b
- Build with -Os (bug 782144)
f96e0b
f96e0b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.99-15
f96e0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f96e0b
f96e0b
* Wed Dec 14 2011 Matthew Garrett <mjg@redhat.com> - 1.99-14
f96e0b
- fix up various grub2-efi issues
f96e0b
f96e0b
* Thu Dec 08 2011 Adam Williamson <awilliam@redhat.com> - 1.99-13
f96e0b
- fix hardwired call to grub-probe in 30_os-prober (rhbz#737203)
f96e0b
f96e0b
* Mon Nov 07 2011 Peter Jones <pjones@redhat.com> - 1.99-12
f96e0b
- Lots of .spec fixes from Mads Kiilerich:
f96e0b
  Remove comment about update-grub - it isn't run in any scriptlets
f96e0b
  patch info pages so they can be installed and removed correctly when renamed
f96e0b
  fix references to grub/grub2 renames in info pages (#743964)
f96e0b
  update README.Fedora (#734090)
f96e0b
  fix comments for the hack for upgrading from grub2 < 1.99-4
f96e0b
  fix sed syntax error preventing use of $RPM_OPT_FLAGS (#704820)
f96e0b
  make /etc/grub2*.cfg %config(noreplace)
f96e0b
  make grub.cfg %ghost - an empty file is of no use anyway
f96e0b
  create /etc/default/grub more like anaconda would create it (#678453)
f96e0b
  don't create rescue entries by default - grubby will not maintain them anyway
f96e0b
  set GRUB_SAVEDEFAULT=true so saved defaults works (rbhz#732058)
f96e0b
  grub2-efi should have its own bash completion
f96e0b
  don't set gfxpayload in efi mode - backport upstream r3402
f96e0b
- Handle dmraid better. Resolves: rhbz#742226
f96e0b
f96e0b
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.99-11
f96e0b
- Rebuilt for glibc bug#747377
f96e0b
f96e0b
* Wed Oct 19 2011 Adam Williamson <awilliam@redhat.com> - 1.99-10
f96e0b
- /etc/default/grub is explicitly intended for user customization, so
f96e0b
  mark it as config(noreplace)
f96e0b
f96e0b
* Tue Oct 11 2011 Peter Jones <pjones@redhat.com> - 1.99-9
f96e0b
- grub has an epoch, so we need that expressed in the obsolete as well.
f96e0b
  Today isn't my day.
f96e0b
f96e0b
* Tue Oct 11 2011 Peter Jones <pjones@redhat.com> - 1.99-8
f96e0b
- Fix my bad obsoletes syntax.
f96e0b
f96e0b
* Thu Oct 06 2011 Peter Jones <pjones@redhat.com> - 1.99-7
f96e0b
- Obsolete grub
f96e0b
  Resolves: rhbz#743381
f96e0b
f96e0b
* Wed Sep 14 2011 Peter Jones <pjones@redhat.com> - 1.99-6
f96e0b
- Use mv not cp to try to avoid moving disk blocks around for -5 fix
f96e0b
  Related: rhbz#735259
f96e0b
- handle initramfs on xen better (patch from Marko Ristola)
f96e0b
  Resolves: rhbz#728775
f96e0b
f96e0b
* Sat Sep 03 2011 Kalev Lember <kalevlember@gmail.com> - 1.99-5
f96e0b
- Fix upgrades from grub2 < 1.99-4 (#735259)
f96e0b
f96e0b
* Fri Sep 02 2011 Peter Jones <pjones@redhat.com> - 1.99-4
f96e0b
- Don't do sysadminny things in %preun or %post ever. (#735259)
f96e0b
- Actually include the changelog in this build (sorry about -3)
f96e0b
f96e0b
* Thu Sep 01 2011 Peter Jones <pjones@redhat.com> - 1.99-2
f96e0b
- Require os-prober (#678456) (patch from Elad Alfassa)
f96e0b
- Require which (#734959) (patch from Elad Alfassa)
f96e0b
f96e0b
* Thu Sep 01 2011 Peter Jones <pjones@redhat.com> - 1.99-1
f96e0b
- Update to grub-1.99 final.
f96e0b
- Fix crt1.o require on x86-64 (fix from Mads Kiilerich)
f96e0b
- Various CFLAGS fixes (from Mads Kiilerich)
f96e0b
  - -fexceptions and -m64
f96e0b
- Temporarily ignore translations (from Mads Kiilerich)
f96e0b
f96e0b
* Thu Jul 21 2011 Peter Jones <pjones@redhat.com> - 1.99-0.3
f96e0b
- Use /sbin not /usr/sbin .
f96e0b
f96e0b
* Thu Jun 23 2011 Peter Lemenkov <lemenkov@gmail.com> - 1:1.99-0.2
f96e0b
- Fixes for ppc and ppc64
f96e0b
f96e0b
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.98-4
f96e0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild