grub2.spec 54.5 KB
Newer Older
Rocky Automation's avatar
Rocky Automation committed
1
2
3
4
5
6
%undefine _hardened_build

%global tarversion 2.02
%undefine _missing_build_ids_terminate_build
%global _configure_gnuconfig_hack 0

Rocky Automation's avatar
Rocky Automation committed
7
8
9
Name:                 grub2
Epoch:                1
Version:              2.02
Rocky Automation's avatar
Rocky Automation committed
10
Release:              106%{?dist}
Rocky Automation's avatar
Rocky Automation committed
11
12
13
14
15
16
Summary:              Bootloader with support for Linux, Multiboot and more
Group:                System Environment/Base
License:              GPLv3+
URL:                  http://www.gnu.org/software/grub/
Obsoletes:            grub < 1:0.98
Source0:              ftp://alpha.gnu.org/gnu/grub/grub-%{tarversion}.tar.xz
Rocky Automation's avatar
Rocky Automation committed
17
#Source0:	ftp://ftp.gnu.org/gnu/grub/grub-%%{tarversion}.tar.xz
Rocky Automation's avatar
Rocky Automation committed
18
19
20
21
22
23
24
25
26
Source1:              grub.macros
Source2:              grub.patches
Source3:              release-to-master.patch
Source4:              http://unifoundry.com/unifont-5.1.20080820.pcf.gz
Source5:              theme.tar.bz2
Source6:              gitignore
Source8:              strtoull_test.c
Source9:              20-grub.install
Source12:             99-grub-mkconfig.install
Rocky Automation's avatar
Rocky Automation committed
27
Source19:             sbat.csv.in
Rocky Automation's avatar
Rocky Automation committed
28

Rocky Automation's avatar
Rocky Automation committed
29
30
Source90000:          rocky-root-ca.der
Source90001:          rocky-signing.der
Rocky Automation's avatar
Rocky Automation committed
31

Rocky Automation's avatar
Rocky Automation committed
32

Rocky Automation's avatar
Rocky Automation committed
33
34
%include %{SOURCE1}

Rocky Automation's avatar
Rocky Automation committed
35
%if 0%{with_efi_arch}
Rocky Automation's avatar
Rocky Automation committed
36
37
%define old_sb_ca	%{SOURCE90000}
%define old_sb_cer	%{SOURCE90001}
Rocky Automation's avatar
Rocky Automation committed
38
%define old_sb_key	redhatsecureboot301
Rocky Automation's avatar
Rocky Automation committed
39
40
%define sb_ca		%{SOURCE90000}
%define sb_cer		%{SOURCE90001}
Rocky Automation's avatar
Rocky Automation committed
41
%define sb_key		redhatsecureboot502
Rocky Automation's avatar
Rocky Automation committed
42
43
44
%endif

%ifarch ppc64le
Rocky Automation's avatar
Rocky Automation committed
45
46
%define old_sb_cer	%{SOURCE90000}
%define sb_cer		%{SOURCE90001}
Rocky Automation's avatar
Rocky Automation committed
47
%define sb_key		redhatsecureboot602
Rocky Automation's avatar
Rocky Automation committed
48
49
%endif

Rocky Automation's avatar
Rocky Automation committed
50
51
52
# generate with do-rebase
%include %{SOURCE2}

Rocky Automation's avatar
Rocky Automation committed
53
54
55
56
57
58
59
60
61
62
63
BuildRequires:        gcc efi-srpm-macros
BuildRequires:        flex bison binutils python3-devel
BuildRequires:        ncurses-devel xz-devel bzip2-devel
BuildRequires:        freetype-devel libusb-devel
BuildRequires:        rpm-devel
BuildRequires:        rpm-devel rpm-libs
BuildRequires:        autoconf automake autogen device-mapper-devel
BuildRequires:        freetype-devel gettext-devel git
BuildRequires:        texinfo
BuildRequires:        dejavu-sans-fonts
BuildRequires:        help2man
Rocky Automation's avatar
Rocky Automation committed
64
# For %%_userunitdir macro
Rocky Automation's avatar
Rocky Automation committed
65
BuildRequires:        systemd
Rocky Automation's avatar
Rocky Automation committed
66
%ifarch %{efi_arch}
Rocky Automation's avatar
Rocky Automation committed
67
BuildRequires:        pesign >= 0.99-8
Rocky Automation's avatar
Rocky Automation committed
68
69
%endif
%if %{?_with_ccache: 1}%{?!_with_ccache: 0}
Rocky Automation's avatar
Rocky Automation committed
70
BuildRequires:        ccache
Rocky Automation's avatar
Rocky Automation committed
71
72
%endif

Rocky Automation's avatar
Rocky Automation committed
73
74
ExcludeArch:          s390 s390x %{arm}
Obsoletes:            %{name} <= %{evr}
Rocky Automation's avatar
Rocky Automation committed
75
76

%if 0%{with_legacy_arch}
Rocky Automation's avatar
Rocky Automation committed
77
Requires:             %{name}-%{legacy_package_arch} = %{evr}
Rocky Automation's avatar
Rocky Automation committed
78
%else
Rocky Automation's avatar
Rocky Automation committed
79
Requires:             %{name}-%{package_arch} = %{evr}
Rocky Automation's avatar
Rocky Automation committed
80
81
82
83
84
85
86
87
88
89
90
91
92
%endif

%global desc \
The GRand Unified Bootloader (GRUB) is a highly configurable and \
customizable bootloader with modular architecture.  It supports a rich \
variety of kernel formats, file systems, computer architectures and \
hardware devices.\
%{nil}

%description
%{desc}

%package common
Rocky Automation's avatar
Rocky Automation committed
93
94
95
96
Summary:              grub2 common layout
Group:                System Environment/Base
BuildArch:            noarch
Conflicts:            grubby < 8.40-13
Rocky Automation's avatar
Rocky Automation committed
97
98
99
100
101
102

%description common
This package provides some directories which are required by various grub2
subpackages.

%package tools
Rocky Automation's avatar
Rocky Automation committed
103
104
105
106
107
108
109
Summary:              Support tools for GRUB.
Group:                System Environment/Base
Obsoletes:            %{name}-tools < %{evr}
Requires:             %{name}-common = %{epoch}:%{version}-%{release}
Requires:             gettext os-prober which file
Requires(pre):	dracut
Requires(post):	dracut
Rocky Automation's avatar
Rocky Automation committed
110
111
112
113
114
115
116

%description tools
%{desc}
This subpackage provides tools for support of all platforms.

%ifarch x86_64
%package tools-efi
Rocky Automation's avatar
Rocky Automation committed
117
118
119
120
121
Summary:              Support tools for GRUB.
Group:                System Environment/Base
Requires:             gettext os-prober which file
Requires:             %{name}-common = %{epoch}:%{version}-%{release}
Obsoletes:            %{name}-tools < %{evr}
Rocky Automation's avatar
Rocky Automation committed
122
123
124
125
126
127
128

%description tools-efi
%{desc}
This subpackage provides tools for support of EFI platforms.
%endif

%package tools-minimal
Rocky Automation's avatar
Rocky Automation committed
129
130
131
132
133
Summary:              Support tools for GRUB.
Group:                System Environment/Base
Requires:             gettext
Requires:             %{name}-common = %{epoch}:%{version}-%{release}
Obsoletes:            %{name}-tools < %{evr}
Rocky Automation's avatar
Rocky Automation committed
134
135
136
137
138
139

%description tools-minimal
%{desc}
This subpackage provides tools for support of all platforms.

%package tools-extra
Rocky Automation's avatar
Rocky Automation committed
140
141
142
143
144
145
Summary:              Support tools for GRUB.
Group:                System Environment/Base
Requires:             gettext os-prober which file
Requires:             %{name}-tools-minimal = %{epoch}:%{version}-%{release}
Requires:             %{name}-common = %{epoch}:%{version}-%{release}
Obsoletes:            %{name}-tools < %{evr}
Rocky Automation's avatar
Rocky Automation committed
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166

%description tools-extra
%{desc}
This subpackage provides tools for support of all platforms.

%if 0%{with_efi_arch}
%{expand:%define_efi_variant %%{package_arch} -o}
%endif
%if 0%{with_alt_efi_arch}
%{expand:%define_efi_variant %%{alt_package_arch}}
%endif
%if 0%{with_legacy_arch}
%{expand:%define_legacy_variant %%{legacy_package_arch}}
%endif

%prep
%do_common_setup
%if 0%{with_efi_arch}
mkdir grub-%{grubefiarch}-%{tarversion}
grep -A100000 '# stuff "make" creates' .gitignore > grub-%{grubefiarch}-%{tarversion}/.gitignore
cp %{SOURCE4} grub-%{grubefiarch}-%{tarversion}/unifont.pcf.gz
Rocky Automation's avatar
Rocky Automation committed
167
sed -e "s,@@VERSION@@,%{evr},g" %{SOURCE19} \
168
	> grub-%{grubefiarch}-%{tarversion}/sbat.csv
Rocky Automation's avatar
Rocky Automation committed
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
git add grub-%{grubefiarch}-%{tarversion}
%endif
%if 0%{with_alt_efi_arch}
mkdir grub-%{grubaltefiarch}-%{tarversion}
grep -A100000 '# stuff "make" creates' .gitignore > grub-%{grubaltefiarch}-%{tarversion}/.gitignore
cp %{SOURCE4} grub-%{grubaltefiarch}-%{tarversion}/unifont.pcf.gz
git add grub-%{grubaltefiarch}-%{tarversion}
%endif
%if 0%{with_legacy_arch}
mkdir grub-%{grublegacyarch}-%{tarversion}
grep -A100000 '# stuff "make" creates' .gitignore > grub-%{grublegacyarch}-%{tarversion}/.gitignore
cp %{SOURCE4} grub-%{grublegacyarch}-%{tarversion}/unifont.pcf.gz
git add grub-%{grublegacyarch}-%{tarversion}
%endif
git commit -m "After making subdirs"

%build
%if 0%{with_efi_arch}
Rocky Automation's avatar
Rocky Automation committed
187
%{expand:%do_primary_efi_build %%{grubefiarch} %%{grubefiname} %%{grubeficdname} %%{_target_platform} %%{efi_target_cflags} %%{efi_host_cflags} %{SOURCE90000} %{SOURCE90001} rockybootsigningcert}
Rocky Automation's avatar
Rocky Automation committed
188
189
%endif
%if 0%{with_alt_efi_arch}
Rocky Automation's avatar
Rocky Automation committed
190
%{expand:%do_alt_efi_build %%{grubaltefiarch} %%{grubaltefiname} %%{grubalteficdname} %%{_alt_target_platform} %%{alt_efi_target_cflags} %%{alt_efi_host_cflags} %{SOURCE90000} %{SOURCE90001} rockybootsigningcert}
Rocky Automation's avatar
Rocky Automation committed
191
192
193
194
%endif
%if 0%{with_legacy_arch}
%{expand:%do_legacy_build %%{grublegacyarch}}
%endif
Rocky Automation's avatar
Rocky Automation committed
195
196
197
%ifarch ppc64le
%{expand:%do_ieee1275_build_images %%{grublegacyarch} %{grubelfname} %{old_sb_cer} %{sb_cer} %{sb_key}}
%endif
Rocky Automation's avatar
Rocky Automation committed
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
makeinfo --info --no-split -I docs -o docs/grub-dev.info \
	docs/grub-dev.texi
makeinfo --info --no-split -I docs -o docs/grub.info \
	docs/grub.texi
makeinfo --html --no-split -I docs -o docs/grub-dev.html \
	docs/grub-dev.texi
makeinfo --html --no-split -I docs -o docs/grub.html \
	docs/grub.texi

%install
set -e
rm -fr $RPM_BUILD_ROOT

%do_common_install
%if 0%{with_efi_arch}
%{expand:%do_efi_install %%{grubefiarch} %%{grubefiname} %%{grubeficdname}}
%endif
%if 0%{with_alt_efi_arch}
%{expand:%do_alt_efi_install %%{grubaltefiarch} %%{grubaltefiname} %%{grubalteficdname}}
%endif
%if 0%{with_legacy_arch}
%{expand:%do_legacy_install %%{grublegacyarch} %%{alt_grub_target_name} 0%{with_efi_arch}}
%endif

rm -f $RPM_BUILD_ROOT%{_infodir}/dir
ln -s %{name}-set-password ${RPM_BUILD_ROOT}/%{_sbindir}/%{name}-setpassword
echo '.so man8/%{name}-set-password.8' > ${RPM_BUILD_ROOT}/%{_datadir}/man/man8/%{name}-setpassword.8
%ifnarch x86_64
rm -vf ${RPM_BUILD_ROOT}/%{_bindir}/%{name}-render-label
rm -vf ${RPM_BUILD_ROOT}/%{_sbindir}/%{name}-bios-setup
rm -vf ${RPM_BUILD_ROOT}/%{_sbindir}/%{name}-macbless
%endif

%find_lang grub

# 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

# Install kernel-install scripts
install -d -m 0755 %{buildroot}%{_prefix}/lib/kernel/install.d/
install -D -m 0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE9}
install -D -m 0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE12}
install -d -m 0755 %{buildroot}%{_sysconfdir}/kernel/install.d/
install -m 0644 /dev/null %{buildroot}%{_sysconfdir}/kernel/install.d/20-grubby.install
install -m 0644 /dev/null %{buildroot}%{_sysconfdir}/kernel/install.d/90-loaderentry.install
# Install systemd user service to set the boot_success flag
install -D -m 0755 -t %{buildroot}%{_userunitdir} \
	docs/grub-boot-success.{timer,service}
install -d -m 0755 %{buildroot}%{_userunitdir}/timers.target.wants
ln -s ../grub-boot-success.timer \
	%{buildroot}%{_userunitdir}/timers.target.wants
# Install systemd system-update unit to set boot_indeterminate for offline-upd
install -D -m 0755 -t %{buildroot}%{_unitdir} docs/grub-boot-indeterminate.service
install -d -m 0755 %{buildroot}%{_unitdir}/system-update.target.wants
ln -s ../grub-boot-indeterminate.service \
	%{buildroot}%{_unitdir}/system-update.target.wants

# Don't run debuginfo on all the grub modules and whatnot; it just
# rejects them, complains, and slows down extraction.
%global finddebugroot "%{_builddir}/%{?buildsubdir}/debug"

%global dip RPM_BUILD_ROOT=%{finddebugroot} %{__debug_install_post}
%define __debug_install_post (						\
	mkdir -p %{finddebugroot}/usr					\
	mv ${RPM_BUILD_ROOT}/usr/bin %{finddebugroot}/usr/bin		\
	mv ${RPM_BUILD_ROOT}/usr/sbin %{finddebugroot}/usr/sbin		\
	%{dip}								\
	install -m 0755 -d %{buildroot}/usr/lib/ %{buildroot}/usr/src/	\
	cp -al %{finddebugroot}/usr/lib/debug/				\\\
		%{buildroot}/usr/lib/debug/				\
	cp -al %{finddebugroot}/usr/src/debug/				\\\
		%{buildroot}/usr/src/debug/ )				\
	mv %{finddebugroot}/usr/bin %{buildroot}/usr/bin		\
	mv %{finddebugroot}/usr/sbin %{buildroot}/usr/sbin		\
	%{nil}

%undefine buildsubdir

%pre tools
if [ -f /boot/grub2/user.cfg ]; then
    if grep -q '^GRUB_PASSWORD=' /boot/grub2/user.cfg ; then
	sed -i 's/^GRUB_PASSWORD=/GRUB2_PASSWORD=/' /boot/grub2/user.cfg
    fi
elif [ -f %{efi_esp_dir}/user.cfg ]; then
    if grep -q '^GRUB_PASSWORD=' %{efi_esp_dir}/user.cfg ; then
	sed -i 's/^GRUB_PASSWORD=/GRUB2_PASSWORD=/' \
	    %{efi_esp_dir}/user.cfg
    fi
elif [ -f /etc/grub.d/01_users ] && \
	grep -q '^password_pbkdf2 root' /etc/grub.d/01_users ; then
    if [ -f %{efi_esp_dir}/grub.cfg ]; then
	# on EFI we don't get permissions on the file, but
	# the directory is protected.
	grep '^password_pbkdf2 root' /etc/grub.d/01_users | \
		sed 's/^password_pbkdf2 root \(.*\)$/GRUB2_PASSWORD=\1/' \
	    > %{efi_esp_dir}/user.cfg
    fi
    if [ -f /boot/grub2/grub.cfg ]; then
	install -m 0600 /dev/null /boot/grub2/user.cfg
	chmod 0600 /boot/grub2/user.cfg
	grep '^password_pbkdf2 root' /etc/grub.d/01_users | \
		sed 's/^password_pbkdf2 root \(.*\)$/GRUB2_PASSWORD=\1/' \
	    > /boot/grub2/user.cfg
    fi
fi

%post tools
if [ "$1" = 1 ]; then
	/sbin/install-info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz || :
	/sbin/install-info --info-dir=%{_infodir} %{_infodir}/%{name}-dev.info.gz || :
fi

if [ "$1" = 2 ]; then
	/sbin/grub2-switch-to-blscfg --backup-suffix=.rpmsave &>/dev/null || :
fi

%triggerun -- grub2 < 1:1.99-4
# 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

# Back up the files before uninstalling old grub2
mkdir -p /boot/grub2.tmp &&
mv -f /boot/grub2/*.mod \
      /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/ || :

%preun tools
if [ "$1" = 0 ]; then
	/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz || :
	/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/%{name}-dev.info.gz || :
fi

%files common -f grub.lang
%dir %{_libdir}/grub/
%dir %{_datarootdir}/grub/
%dir %{_datarootdir}/grub/themes/
%exclude %{_datarootdir}/grub/themes/*
%attr(0700,root,root) %dir %{_sysconfdir}/grub.d
%{_prefix}/lib/kernel/install.d/20-grub.install
%{_sysconfdir}/kernel/install.d/20-grubby.install
%{_sysconfdir}/kernel/install.d/90-loaderentry.install
%{_prefix}/lib/kernel/install.d/99-grub-mkconfig.install
%dir %{_datarootdir}/grub
%exclude %{_datarootdir}/grub/*
%dir /boot/%{name}
%dir /boot/%{name}/themes/
%dir /boot/%{name}/themes/system
%exclude /boot/%{name}/themes/system/*
%attr(0700,root,root) %dir /boot/grub2
%exclude /boot/grub2/*
%dir %attr(0700,root,root) %{efi_esp_dir}
%exclude %{efi_esp_dir}/*
%license COPYING
Rocky Automation's avatar
Rocky Automation committed
375
%ghost %config(noreplace) %verify(not size mode md5 mtime) /boot/grub2/grubenv
Rocky Automation's avatar
Rocky Automation committed
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
%doc INSTALL
%doc NEWS
%doc README
%doc THANKS
%doc TODO
%doc docs/grub.html
%doc docs/grub-dev.html
%doc docs/font_char_metrics.png

%files tools-minimal
%{_sysconfdir}/prelink.conf.d/grub2.conf
%{_sbindir}/%{name}-get-kernel-settings
%attr(4755, root, root) %{_sbindir}/%{name}-set-bootflag
%{_sbindir}/%{name}-set-default
%{_sbindir}/%{name}-set*password
%{_bindir}/%{name}-editenv
%{_bindir}/%{name}-mkpasswd-pbkdf2

%{_datadir}/man/man3/%{name}-get-kernel-settings*
%{_datadir}/man/man8/%{name}-set-default*
%{_datadir}/man/man8/%{name}-set*password*
%{_datadir}/man/man1/%{name}-editenv*
%{_datadir}/man/man1/%{name}-mkpasswd-*

%ifarch x86_64
%files tools-efi
%{_sbindir}/%{name}-macbless
%{_bindir}/%{name}-render-label
%{_datadir}/man/man8/%{name}-macbless*
%{_datadir}/man/man1/%{name}-render-label*
%endif

%files tools
%attr(0644,root,root) %ghost %config(noreplace) %{_sysconfdir}/default/grub
%config %{_sysconfdir}/grub.d/??_*
%ifarch ppc64 ppc64le
%exclude %{_sysconfdir}/grub.d/10_linux
%else
%exclude %{_sysconfdir}/grub.d/10_linux_bls
%endif
%{_sysconfdir}/grub.d/README
%{_userunitdir}/grub-boot-success.timer
%{_userunitdir}/grub-boot-success.service
%{_userunitdir}/timers.target.wants
%{_unitdir}/grub-boot-indeterminate.service
%{_unitdir}/system-update.target.wants
%{_infodir}/%{name}*
%{_datarootdir}/grub/*
%{_sbindir}/%{name}-install
%exclude %{_datarootdir}/grub/themes
%exclude %{_datarootdir}/grub/*.h
%{_datarootdir}/bash-completion/completions/grub
%{_sbindir}/%{name}-mkconfig
%{_sbindir}/%{name}-switch-to-blscfg
%{_sbindir}/%{name}-probe
%{_sbindir}/%{name}-rpm-sort
%{_sbindir}/%{name}-reboot
%{_bindir}/%{name}-file
%{_bindir}/%{name}-menulst2cfg
%{_bindir}/%{name}-mkimage
%{_bindir}/%{name}-mkrelpath
%{_bindir}/%{name}-script-check
%{_datadir}/man/man?/*

# exclude man pages from tools-extra
%exclude %{_datadir}/man/man8/%{name}-sparc64-setup*
%exclude %{_datadir}/man/man8/%{name}-install*
%exclude %{_datadir}/man/man1/%{name}-fstest*
%exclude %{_datadir}/man/man1/%{name}-glue-efi*
%exclude %{_datadir}/man/man1/%{name}-kbdcomp*
%exclude %{_datadir}/man/man1/%{name}-mkfont*
%exclude %{_datadir}/man/man1/%{name}-mklayout*
%exclude %{_datadir}/man/man1/%{name}-mknetdir*
%exclude %{_datadir}/man/man1/%{name}-mkrescue*
%exclude %{_datadir}/man/man1/%{name}-mkstandalone*
%exclude %{_datadir}/man/man1/%{name}-syslinux2cfg*

# exclude man pages from tools-minimal
%exclude %{_datadir}/man/man3/%{name}-get-kernel-settings*
%exclude %{_datadir}/man/man8/%{name}-set-default*
%exclude %{_datadir}/man/man8/%{name}-set*password*
%exclude %{_datadir}/man/man1/%{name}-editenv*
%exclude %{_datadir}/man/man1/%{name}-mkpasswd-*
%exclude %{_datadir}/man/man8/%{name}-macbless*
%exclude %{_datadir}/man/man1/%{name}-render-label*

%if %{with_legacy_arch}
%{_sbindir}/%{name}-install
%ifarch x86_64
%{_sbindir}/%{name}-bios-setup
%else
%exclude %{_sbindir}/%{name}-bios-setup
%exclude %{_datadir}/man/man8/%{name}-bios-setup*
%endif
%ifarch %{sparc}
%{_sbindir}/%{name}-sparc64-setup
%else
%exclude %{_sbindir}/%{name}-sparc64-setup
%exclude %{_datadir}/man/man8/%{name}-sparc64-setup*
%endif
%ifarch %{sparc} ppc ppc64 ppc64le
%{_sbindir}/%{name}-ofpathname
%else
%exclude %{_sbindir}/%{name}-ofpathname
%exclude %{_datadir}/man/man8/%{name}-ofpathname*
%endif
%endif

%files tools-extra
%{_sbindir}/%{name}-sparc64-setup
%{_sbindir}/%{name}-ofpathname
%{_bindir}/%{name}-fstest
%{_bindir}/%{name}-glue-efi
%{_bindir}/%{name}-kbdcomp
%{_bindir}/%{name}-mkfont
%{_bindir}/%{name}-mklayout
%{_bindir}/%{name}-mknetdir
%ifnarch %{sparc}
%{_bindir}/%{name}-mkrescue
%endif
%{_bindir}/%{name}-mkstandalone
%{_bindir}/%{name}-syslinux2cfg
%{_sysconfdir}/sysconfig/grub
%{_datadir}/man/man8/%{name}-sparc64-setup*
%{_datadir}/man/man8/%{name}-install*
%{_datadir}/man/man1/%{name}-fstest*
%{_datadir}/man/man1/%{name}-glue-efi*
%{_datadir}/man/man1/%{name}-kbdcomp*
%{_datadir}/man/man1/%{name}-mkfont*
%{_datadir}/man/man1/%{name}-mklayout*
%{_datadir}/man/man1/%{name}-mknetdir*
%{_datadir}/man/man1/%{name}-mkrescue*
%{_datadir}/man/man1/%{name}-mkstandalone*
%{_datadir}/man/man8/%{name}-ofpathname*
%{_datadir}/man/man1/%{name}-syslinux2cfg*
%exclude %{_datarootdir}/grub/themes/starfield

%if 0%{with_efi_arch}
%{expand:%define_efi_variant_files %%{package_arch} %%{grubefiname} %%{grubeficdname} %%{grubefiarch} %%{target_cpu_name} %%{grub_target_name}}
%endif
%if 0%{with_alt_efi_arch}
%{expand:%define_efi_variant_files %%{alt_package_arch} %%{grubaltefiname} %%{grubalteficdname} %%{grubaltefiarch} %%{alt_target_cpu_name} %%{alt_grub_target_name}}
%endif
%if 0%{with_legacy_arch}
%{expand:%define_legacy_variant_files %%{legacy_package_arch} %%{grublegacyarch}}
%endif

%changelog
Rocky Automation's avatar
Rocky Automation committed
524
* Tue Nov 09 2021 Release Engineering <releng@rockylinux.org> - 2.02-106
Rocky Automation's avatar
Rocky Automation committed
525
- Removing redhat old cert sources entries (Sherif Nagy)
Rocky Automation's avatar
Rocky Automation committed
526
- Preserving rhel8 sbat entry based on shim-review feedback ticket no. 194
527
- Adding prod cert
Rocky Automation's avatar
Rocky Automation committed
528
- Porting to 8.5
Rocky Automation's avatar
Rocky Automation committed
529
- Cleaning up grup.macro extra signing certs and updating rocky test CA and CERT
530
- Cleaning up grup.macro extra signing certs
531
532
- Adding Rocky testing CA, CERT and sbat files

Rocky Automation's avatar
Rocky Automation committed
533
534
535
536
537
538
539
* Thu Aug 19 2021 Javier Martinez Canillas <javierm@redhat.com> - 2.02-106
- Fix device discoverability on PowerVM when the prefix is not set (dja)
  Related: rhbz#1899864

* Thu Jul 22 2021 Javier Martinez Canillas <javierm@redhat.com> - 2.02-105
- Discover the device to read the config from as a fallback
  Related: rhbz#1899864
540

Rocky Automation's avatar
Rocky Automation committed
541
542
543
544
545
* Mon Jun 21 2021 Javier Martinez Canillas <javierm@redhat.com> - 2.02-104
- 20-grub-install: Create a symvers.gz symbolic link
  Resolves: rhbz#1919125

* Mon May 17 2021 Javier Martinez Canillas <javierm@redhat.com> - 2.02-103
546
- Fix boot failures in ppc64le caused by storage race condition (diegodo)
Rocky Automation's avatar
Rocky Automation committed
547
548
549
550
551
552
553
554
555
556
557
558
559
  Resolves: rhbz#1942152

* Tue May 11 2021 Javier Martinez Canillas <javierm@redhat.com> - 2.02-102
- Build and sign powerpc-ieee1275 images
  Related: rhbz#1899864

* Fri Apr 23 2021 Javier Martinez Canillas <javierm@redhat.com> - 2.02-101
- Find and claim more memory for ieee1275 (dja)
  Related: rhbz#1853410

* Fri Apr 23 2021 Javier Martinez Canillas <javierm@redhat.com> - 2.02-100
- Sync with the latest content of the rhel-8.4.0 branch
  Resolves: rhbz#1952840
560

Rocky Automation's avatar
Rocky Automation committed
561
562
563
564
565
566
567
568
569
570
571
* Thu Feb 25 2021 Javier Martinez Canillas <javierm@redhat.com> - 2.02-99
- Fix bug of grub2-install not checking for the SBAT option
  Resolves: CVE-2020-14372
  Resolves: CVE-2020-25632
  Resolves: CVE-2020-25647
  Resolves: CVE-2020-27749
  Resolves: CVE-2020-27779
  Resolves: CVE-2021-20225
  Resolves: CVE-2021-20233

* Thu Feb 25 2021 Javier Martinez Canillas <javierm@redhat.com> - 2.02-98
572
573
574
575
576
577
578
579
580
- Fix another batch of CVEs
  Resolves: CVE-2020-14372
  Resolves: CVE-2020-25632
  Resolves: CVE-2020-25647
  Resolves: CVE-2020-27749
  Resolves: CVE-2020-27779
  Resolves: CVE-2021-20225
  Resolves: CVE-2021-20233

Rocky Automation's avatar
Rocky Automation committed
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
* Tue Feb 23 2021 Javier Martinez Canillas <javierm@redhat.com> - 2.02-97
- Fix keylayouts module listed twice in GRUB_MODULES variable

* Tue Feb 23 2021 Javier Martinez Canillas <javierm@redhat.com> - 2.02-96
- Fix "Add 'at_keyboard_fallback_set' var to force the set manually"
- Fix a boot failure due patch "ieee1275: claim up to 256MB memory"

* Tue Jan 26 2021 Javier Martinez Canillas <javierm@redhat.com> - 2.02-95
- Add appended signatures support for ppc64le LPAR Secure Boot (daxtens)
  Resolves: rhbz#1853410

* Wed Jan 20 2021 Renaud Métrich <rmetrich@redhat.com> - 2.02-94
- Add 'at_keyboard_fallback_set' var to force the set manually
- Related: rhbz#1897587

* Mon Dec 14 2020 Javier Martinez Canillas <javierm@redhat.com> - 2.02-93
- add keylayouts and at_keyboard modules to UEFI Grub2 (rmetrich)
  Related: rhbz#1897587
- at_keyboard: use set 1 when keyboard is in Translate mode (rmetrich)
  Resolves: rhbz#1897587
- add GRUB enhanced debugging features (rmetrich)
  Resolves: rhbz#1776249
- ieee1275: Avoiding many unecessary open/close (diegodo)
  Resolves: rhbz#1862632
- ieee1275: device mapper and fibre channel discovery support (diegodo)
  Resolves: rhbz#1873724

* Mon Nov 23 2020 Jan Hlavac <jhlavac@redhat.com> - 2.02-92
- grub2-install: disable support for EFI platforms
  Resolves: rhbz#1737444
- Include a few more modules to EFI build needed for LUKS support (javierm)
  Related: rhbz#1873725

* Mon Nov 16 2020 Javier Martinez Canillas <javierm@redhat.com> - 2.02-91
- Fix tps-rpmtest failing due /boot/grub2/grubenv attributes mismatch
  Resolves: rhbz#1813959
- Include in EFI build the modules needed for LUKS support
  Resolves: rhbz#1873725
- Fix keyboards that report IBM PC AT scan codes
  Resolves: rhbz#1897587

Rocky Automation's avatar
Rocky Automation committed
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
* Mon Aug 31 2020 Javier Martinez Canillas <javierm@redhat.com> - 2.02-90
- Roll over TFTP block counter to prevent timeouts with data packets
  Resolves: rhbz#1871034

* Fri Aug 21 2020 Javier Martinez Canillas <javierm@redhat.com> - 2.02-89
- Fix TFTP timeouts when trying to fetch files larger than 65535 KiB
  Resolves: rhbz#1871034

* Tue Aug 11 2020 Javier Martinez Canillas <javierm@redhat.com> - 2.02-88
- Fix a legacy BIOS boot issue when a using config file shared with EFI
  Resolves: rhbz#1850193

* Mon Jul 27 2020 Peter Jones <pjones@redhat.com> - 2.02-87
- Couple more late fixes.
  Resolves: CVE-2020-15705

* Sun Jul 26 2020 Peter Jones <pjones@redhat.com> - 2.02-86
- Couple more late fixes.
  Resolves: CVE-2020-10713
  Resolves: CVE-2020-14308
  Resolves: CVE-2020-14309
  Resolves: CVE-2020-14310
  Resolves: CVE-2020-14311

* Mon Jul 20 2020 Peter Jones <pjones@redhat.com> - 2.02-85
Rocky Automation's avatar
Rocky Automation committed
647
648
649
650
651
652
653
- Fix several CVEs
  Resolves: CVE-2020-10713
  Resolves: CVE-2020-14308
  Resolves: CVE-2020-14309
  Resolves: CVE-2020-14310
  Resolves: CVE-2020-14311

Rocky Automation's avatar
Rocky Automation committed
654
655
656
657
658
* Tue May 19 2020 Javier Martinez Canillas <javierm@redhat.com> - 2.02-84
- Add fixes for greenboot support
  Resolves: rhbz#1832336

* Mon May 18 2020 Javier Martinez Canillas <javierm@redhat.com> - 2.02-83
659
- Fix a segfault in grub2-editenv when attempting to shrink a variable
Rocky Automation's avatar
Rocky Automation committed
660
661
662
663
664
665
666
667
668
669
670
671
672
673
  Resolves: rhbz#1761496

* Mon Apr 27 2020 Javier Martinez Canillas <javierm@redhat.com> - 2.02-82
- Drop "Disable multiboot, multiboot2, and linux16 modules on EFI builds"
  Resolves: rhbz#1779480
- efi/http: Export {fw,http}_path variables to make them global
  Resolves: rhbz#1811561
- efi/http: Enclose literal IPv6 addresses in square brackets
- efi/net: Allow to specify a port number in addresses
- efi/ip4_config: Improve check to detect literal IPv6 addresses
- efi/net: Print a debug message if parsing the address fails
  Resolves: rhbz#1811560
- Set image base address before jumping to the PE/COFF entry point
  Resolves: rhbz#1819624
674

Rocky Automation's avatar
Rocky Automation committed
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
* Thu Dec 05 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.02-81
- Another fix for blscfg variable expansion support
  Related: rhbz#1669252

* Thu Nov 28 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.02-80
- Fix PRIxGRUB_EFI_STATUS definition
  Related: rhbz#1761811
- TPM: Print messages if measuraments fail as debug instead of error
  Resolves: rhbz#1761811
- unix/platform: Initialize variable to fix grub-install on UEFI system
  Resolves: rhbz#1768689
- blscfg: add a space char when appending fields for variable expansion
  Resolves: rhbz#1669252

* Fri Nov 22 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.02-79
690
691
692
- grub-set-bootflag: Write new env to tmpfile and then rename (hdegoede)
  Resolves: CVE-2019-14865

Rocky Automation's avatar
Rocky Automation committed
693
694
695
696
697
* Thu Sep 26 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.02-77
- 10_linux_bls: don't add --users option to generated menu entries
  Resolves: rhbz#1755815

* Fri Aug 09 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.02-76
698
- Include regexp module in EFI builds
Rocky Automation's avatar
Rocky Automation committed
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
  Resolves: rhbz#1737670

* Wed Jun 19 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.02-75
- Fix setting default entry on ppc64le when using OPAL
  Resolves: rhbz#1721815

* Tue Jun 04 2019 Sergio Durigan Junior <sergiodj@redhat.com> - 2.02-74
- Use '-g' instead of '-g3' when compiling grub2.
  Related: rhbz#1653961

* Wed May 29 2019 Peter Jones <pjones@redhat.com> - 2.02-73
- Rebuild once again to try to get rpmdiff happy.
  Related: rhbz#1653961

* Mon May 27 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.02-72
- Build with the correct target
  Related: rhbz#1653961

* Fri May 24 2019 Peter Jones <pjones@redhat.com> - 2.02-71
- Fix (a fourth time, due to a typo) how LDFLAGS works on non-efi platforms.
  Related: rhbz#1653961

* Thu May 23 2019 Peter Jones <pjones@redhat.com> - 2.02-70
- Fix (once again) how CFLAGS and LDFLAGS propogate the settings for hardened
  builds, because rpmdiff doesn't like the current way failing.
  Related: rhbz#1653961

* Tue May 21 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.02-69
- Enable package gating
  Resolves: rhbz#1653961

* Mon May 20 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.02-68
- Avoid grub2-efi package to overwrite existing /boot/grub2/grubenv file
  Resolves: rhbz#1680572
- Try to set -fPIE and friends on libgnu.a (pjones)
- blscfg: fallback to default_kernelopts if BLS option field isn't set
  Related: rhbz#1680572
- Remove bogus load_env after blscfg command in 10_linux

* Mon Apr 29 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.02-67
- Fix failure to request grub.cfg over HTTP
  Resolves: rhbz#1490991
741

Rocky Automation's avatar
Rocky Automation committed
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
* Wed Dec 19 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.02-66
- Fix grub.cfg-XXX look up when booting over TFTP
  Resolves: rhbz#1658500

* Mon Dec 17 2018 Peter Jones <pjones@redhat.com> - 2.02-65
- Don't build the grub2-efi-ia32-* packages on i686; it causes multilib
  errors and we don't ship the result anyway.
  Related: rhbz#1637875

* Tue Dec 11 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.02-64
- Make grub2-mkconfig to honour GRUB_CMDLINE_LINUX in /etc/default/grub
  Resolves: rhbz#1637875
- docs: Stop using polkit / pkexec for grub-boot-success.timer / service
  Resolves: rhbz#1655687

* Tue Dec 04 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.02-63
- BLS files should only be copied by grub-switch-to-blscfg if BLS isn't set
  Related: rhbz#1638117
- Fix get_entry_number() wrongly dereferencing the tail pointer
  Resolves: rhbz#1654936

* Fri Nov 30 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.02-62
- Drop "Be more aggro about actually using the *configured* network device."
  Resolves: rhbz#1654388
- Fix menu entry selection based on title
  Resolves: rhbz#1654936

* Tue Nov 27 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.02-61
- Drop buggy downstream patch "efinet: retransmit if our device is busy"
  Resolves: rhbz#1649048
- Make the menu entry users option argument to be optional
  Related: rhbz#1652434
- 10_linux_bls: add missing menu entries options
  Resolves: rhbz#1652434

* Wed Nov 21 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.02-60
- Remove quotes when reading ID value from /etc/os-release
  Related: rhbz#1650706
- blscfg: expand grub_users before passing to grub_normal_add_menu_entry()
  Resolves: rhbz#1650706

* Thu Nov 08 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.02-59
- Remove installkernel-bls script
  Related: rhbz#1647721

* Wed Oct 24 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.02-58
- Don't unconditionally set default entry when installing debug kernels
  Resolves: rhbz#1636346

* Fri Oct 19 2018 Peter Jones <pjones@redhat.com> - 2.02-57
- Fix menu entry selection based on ID and title
  Resolves: rhbz#1640979

* Fri Oct 19 2018 Javier Martinez Canillas <javierm@redhat.com>
- don't set saved_entry on grub2-mkconfig
  Resolves: rhbz#1636466

* Tue Oct 16 2018 Peter Jones <pjones@redhat.com> - 2.02-56
- Rebuild for signing
  Resolves: rhbz#1625565
- blscfg: Make 10_linux_bls sort the same way as well
  Related: rhbz#1638103

* Mon Oct 15 2018 Peter Jones <pjones@redhat.com> - 2.02-55
- blscfg: sort everything with rpm *package* comparison
  Related: rhbz#1638103

* Thu Oct 11 2018 Peter Jones <pjones@redhat.com> - 2.02-54
- kernel-install: Remove existing initramfs if it's older than the kernel
  Resolves: rhbz#1638405
- Update the saved entry correctly after a kernel install
  Resolves: rhbz#1638117

* Fri Oct 05 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.02-53
- Only set kernelopts in grubenv if it wasn't set before
  Resolves: rhbz#1636466

* Thu Oct 04 2018 Peter Jones <pjones@redhat.com> - 2.02-52
- Remove 01_fallback_counting entirely until we can sort its issues out.
  Resolves: rhbz#1615954

* Thu Oct 04 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.02-51
- add 10_linux_bls grub.d snippet to generate menu entries from BLS files
  Resolves: rhbz#1636013
- Fix syntax issues in 01_fallback_counting.in
  Resolves: rhbz#1615954

* Mon Oct 01 2018 pjones <pjones@redhat.com> - 1:2.02-50
- Disable TPM (again) on BIOS; it really does not work reliably.
  Resolves: rhbz#1579835
- Make blscfg module loadable on other grub2 builds
  Resolves: rhbz#1633646
- Include blscfg module on ppc builds
  Related: rhbz#1633646
- Fix rpmdiff complaints about execstack
  Related: rhbz#1633646

* Mon Sep 24 2018 Peter Jones <pjones@redhat.com> - 2.02-49
- Add an installkernel script for BLS configurations
  Related: rhbz#1619344

* Fri Sep 14 2018 Peter Jones <pjones@redhat.com> - 2.02-48
- Go back to forcing all allocations on x86_64 to be 32-bit, as many UEFI
  implementations seem to have drivers with DMA issues for addresses
  above 4GB.
  Resolves: rhbz#1628346

* Wed Sep 12 2018 Peter Jones <pjones@redhat.com> - 2.02-47
- BLS fixes from the F29 tree
  - Use /boot/loader/entries as BLS dir also on EFI systems
  - Make 20-grub.install to exit if there is no machine ID set
  - More fixes for BLS
  Resolves: rhbz#1620954

* Mon Aug 27 2018 Peter Jones <pjones@redhat.com> - 2.02-46
- Better memory allocation for kernel/initramfs on aarch64
  Resolves: rhbz#1620954

* Tue Aug 14 2018 Peter Jones <pjones@redhat.com> - 2.02-45
- Fix a typo in /etc/grub.d/01_fallback_counting
  Resolves: rhbz#1615954

* Thu Aug 09 2018 Peter Jones <pjones@redhat.com> - 2.02-44
- Rebased to newer upstream for fedora-29

* Thu Aug 09 2018 pjones <pjones@redhat.com> - 1:2.02-43
- Rebased to newer upstream for fedora-29

* Tue Jul 17 2018 Peter Jones <pjones@redhat.com> - 2.02-42
- Fix some minor BLS issues
- Rework the FDT module linking to make aarch64 build and boot right
  Resolves: rhbz#1601835

* Mon Jul 16 2018 pjones <pjones@redhat.com> - 2.02-41
- Pull in newer sb patches that do a better job with config file writing

* Mon Jul 16 2018 Hans de Goede <hdegoede@redhat.com>
- Make the user session automatically set the boot_success grubenv flag
- Make offline-updates increment the boot_indeterminate grubenv variable

* Fri Jul 13 2018 Peter Jones <pjones@redhat.com> - 2.02-40
- Revert broken moduledir fix in this tree as well.

* Tue Jul 10 2018 pjones <pjones@redhat.com> - 2.02-39
- Fix our linuxefi/linux command reunion.

* Tue Jul 10 2018 pjones <pjones@redhat.com> - 2.02-38
- Rebased to newer upstream for RHEL-8

* Wed May 16 2018 Peter Jones <pjones@redhat.com> - 2.02-37
- Fixups to work with gcc 8
- Experimental https boot support on UEFI
- XFS fixes for sparse inode support
  Resolves: rhbz#1575797

* Thu May 10 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.02-36
- Use version field to sort BLS entries if id field isn't defined
- Add version field to BLS fragments generated by 20-grub.install

* Tue Apr 24 2018 Peter Jones <pjones@redhat.com> - 2.02-35
- A couple of fixes needed by Fedora Atomic - javierm

* Mon Apr 23 2018 Peter Jones <pjones@redhat.com> - 2.02-34
- Put the os-prober dep back in - we need to change test plans and criteria
  before it can go.
  Resolves: rhbz#1569411

* Wed Apr 11 2018 Peter Jones <pjones@redhat.com> - 2.02-33
- Work around some issues with older automake found in CentOS.
- Make multiple initramfs images work in BLS.

* Wed Apr 11 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.02-32
- Make 20-grub.install to generate debug BLS when MAKEDEBUG is set.

* Fri Apr 06 2018 Peter Jones <pjones@redhat.com> - 2.02-31
- Pull in some TPM fixes I missed.

* Fri Apr 06 2018 Peter Jones <pjones@redhat.com> - 2.02-30
- Enable TPM measurements
- Set the default boot entry to the first entry when we're using BLS.

* Tue Apr 03 2018 Peter Jones <pjones@redhat.com> - 2.02-29
- Add grub2-switch-to-blscfg
- Fix for BLS paths on BIOS / non-UEFI (javierm)

* Fri Mar 09 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.02-28
- Install kernel-install scripts.

* Tue Mar 06 2018 Peter Jones <pjones@redhat.com> - 2.02-27
- Build the blscfg module in on EFI builds.

* Wed Feb 28 2018 Peter Jones <pjones@redhat.com> - 2.02-26
- Try to fix things for new compiler madness.
  I really don't know why gcc decided __attribute__((packed)) on a "typedef
  struct" should imply __attribute__((align (1))) and that it should have a
  warning that it does so.  The obvious behavior would be to keep the alignment
  of the first element unless it's used in another object or type that /also/
  hask the packed attribute.  Why should it change the default alignment at
  all?
- Merge in the BLS patches Javier and I wrote.
- Attempt to fix pmtimer initialization failures to not be super duper slow.

* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org>
- Escape macros in %%changelog

* Tue Jan 23 2018 Peter Jones <pjones@redhat.com> - 2.02-24
- Fix a merge error from 2.02-21 that affected kernel loading on Aarch64.
  Related: rhbz#1519311
  Related: rhbz#1506704
  Related: rhbz#1502312

* Fri Jan 19 2018 Peter Jones <pjones@redhat.com> - 2.02-23
- Only nerf annobin, not -fstack-crash-protection.
- Fix a conflict on /boot/efi directory permissions between -cdboot and the
  normal bootloader.

* Thu Jan 18 2018 Peter Jones <pjones@redhat.com> - 2.02-22
- Nerf some gcc 7.2.1-6 'features' that cause grub to crash on start.

* Thu Jan 18 2018 Peter Jones <pjones@redhat.com> - 2.02-21
- Fix grub2-efi-modules provides/obsoletes generation
  Resolves: rhbz#1506704
- *Also* build grub-efi-ia32{,-*,!-modules} packages for i686 builds
  Resolves: rhbz#1502312
- Make everything under /boot/efi be mode 0700, since that's what FAT will
  show anyway.

* Wed Jan 17 2018 Peter Jones <pjones@redhat.com> - 2.02-20
- Update to newer upstream for F28
- Pull in patches for Apollo Lake hardware
  Resolves: rhbz#1519311

* Tue Oct 24 2017 Peter Jones <pjones@redhat.com> - 2.02-19
- Handle xen module loading (somewhat) better
  Resolves: rhbz#1486002

* Wed Sep 20 2017 Peter Jones <pjones@redhat.com> - 2.02-18
- Make grub2-efi-aa64 provide grub2
  Resolves: rhbz#1491045

* Mon Sep 11 2017 Dennis Gilmore <dennis@ausil.us> - 2.02-17
- bump for Obsoletes again

* Wed Sep 06 2017 Peter Jones <pjones@redhat.com> - 2.02-16
- Fix Obsoletes on grub2-pc

* Wed Aug 30 2017 Petr Šabata <contyk@redhat.com> - 2.02-15
- Limit the pattern matching in do_alt_efi_install to files to
  unbreak module builds

* Fri Aug 25 2017 Peter Jones <pjones@redhat.com> - 2.02-14
- Revert the /usr/lib/.build-id/ change:
  https://fedoraproject.org/wiki/Changes/ParallelInstallableDebuginfo
  says (without any particularly convincing reasoning):
    The main build-id file should not be in the debuginfo file, but in the
    main package (this was always a problem since the package and debuginfo
    package installed might not match). If we want to make usr/lib/debug/ a
    network resource then we will need to move the symlink to another
    location (maybe /usr/lib/.build-id).
For faster browsing, not all history is shown. View entire blame