1 |
# $Id: e-smith-grub.spec,v 1.15 2021/02/19 04:24:52 jpp Exp $ |
2 |
|
3 |
Summary: e-smith module to configure grub2 |
4 |
%define name e-smith-grub |
5 |
Name: %{name} |
6 |
%define version 2.6.1 |
7 |
%define release 10 |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
13 |
Source1: smeserver10.png |
14 |
Source2: koozali.tar.xz |
15 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
16 |
BuildRequires: e-smith-devtools |
17 |
BuildArchitectures: noarch |
18 |
Patch0: e-smith-grub-2.6.1.bz9668.AddFullPath2GrubAction.patch |
19 |
Patch1: e-smith-grub-2.6.0-bz10211-enableXFSquota.patch |
20 |
Patch2: e-smith-grub-2.6.1.bz9728.AddGrubThemeKoozali.patch |
21 |
Patch3: e-smith-grub-2.6.1-bz11137-update.patch |
22 |
Patch4: e-smith-grub-2.6.1-efi.patch |
23 |
Patch5: e-smith-grub-2.6.1-bz11365-unabletobootext4rootfs.patch |
24 |
|
25 |
Requires: e-smith-lib >= 1.15.3-17 |
26 |
Requires: grub2 |
27 |
Provides: system-logos |
28 |
Obsoletes: e-smith-lilo |
29 |
Provides: e-smith-bootloader |
30 |
Obsoletes: lilo |
31 |
AutoReqProv: no |
32 |
|
33 |
%changelog |
34 |
* Sat Feb 20 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.1-10.sme |
35 |
- fix unable to boot on a non xfs root filesystem [SME: 11365] |
36 |
|
37 |
* Thu Feb 18 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.1-9.sme |
38 |
- cleanup remove /boot/grub dir [SME: 11354] |
39 |
|
40 |
* Wed Jan 17 2021 Chris Sansom-Ninnes <chris@sansom.ninnes.net> 2.6.1-8.sme |
41 |
- Add support for EFI systems [SME: 10998] |
42 |
|
43 |
* Wed Jan 06 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.1-7.sme |
44 |
- add update event [SME: 11137] |
45 |
|
46 |
* Thu May 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.1-6.sme |
47 |
- rebuild for file ownership conflict [SME: 10325] |
48 |
|
49 |
* Thu May 11 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.1-5.sme |
50 |
- fix edition and consol grub terminal not visible because of koozali logo [SME: 9728] |
51 |
|
52 |
* Wed Apr 05 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.1-4.sme |
53 |
- enable quota for groups and users with XFS [SME: 10211] |
54 |
|
55 |
* Mon Jul 25 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.1-3.sme |
56 |
- Koozali grub splash screen |
57 |
|
58 |
* Sat Jul 16 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.1-2.sme |
59 |
- Write the full path for the grub Action [SME: 9668] |
60 |
- Added e-smith-grub-2.6.1.bz9668.AddFullPath2GrubAction.patch |
61 |
|
62 |
* Wed Jun 15 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.1-1.sme |
63 |
- New source [SME: 9321] |
64 |
|
65 |
* Tue Jun 14 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-4.sme |
66 |
- Adaptation to grub2 [SME: 9321] |
67 |
|
68 |
* Fri Mar 18 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
69 |
- rebuild for Bug [SME: 9347] |
70 |
|
71 |
* Fri Mar 18 2016 JP Pialasse <tests@pialasse.com> 2.6.0-2.sme |
72 |
- fix Requires grub2 [SME: 9320] |
73 |
|
74 |
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-1.sme |
75 |
- Initial release to sme10 |
76 |
|
77 |
* Wed Jan 20 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-4.sme |
78 |
- Remove motd text from grub.cfg [SME: 9161] |
79 |
|
80 |
* Fri Mar 1 2013 Shad L. Lords <slords@mail.com> 2.4.0-3.sme |
81 |
- Revert previous rhgb patch and disable plymouth [SME: 7354] |
82 |
|
83 |
* Tue Feb 19 2013 Shad L. Lords <slords@mail.com> 2.4.0-2.sme |
84 |
- Remove rhgb option from grub [SME: 7354] |
85 |
|
86 |
* Thu Jan 31 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme |
87 |
- Roll new stream for sme9 |
88 |
|
89 |
* Wed Nov 4 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-2.sme |
90 |
- Remove hiddenmenu entry from grub.conf [SME: 5546] |
91 |
|
92 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
93 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
94 |
|
95 |
* Fri Mar 21 2008 Shad L. Lords <slords@mail.com> 1.0.0-7 |
96 |
- Fix up CentOS titles in grub.conf [SME: 4084] |
97 |
|
98 |
* Fri Jul 13 2007 Shad L. Lords <slords@mail.com> 1.0.0-6 |
99 |
- Add smeserver splash screen for grub [SME: 3152] |
100 |
|
101 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
102 |
- Clean up spec so package can be built by koji/plague |
103 |
|
104 |
* Thu Jan 04 2007 Shad L. Lords <slords@mail.com> 1.0.0-5 |
105 |
- Update /etc/sysconfig/kernel on boot too. [SME: 1930] |
106 |
|
107 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
108 |
- Update to new release naming. No functional changes. |
109 |
- Make Packager generic |
110 |
|
111 |
* Tue Dec 05 2006 Shad L. Lords <slords@mail.com> 1.0.0-03 |
112 |
- Remove grub-install-raid completely as it doesn't handle more |
113 |
than raid1 [SME: 2131] |
114 |
|
115 |
* Thu Mar 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-02 |
116 |
- Rebuild without the test release tag [SME: 1197] |
117 |
|
118 |
* Thu Mar 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-01test01 |
119 |
- Remove grub-install-raid from post-{install,upgrade} [SME: 1197] |
120 |
|
121 |
* Thu Mar 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-01 |
122 |
- Roll stable stream version. [SME: 1016] |
123 |
|
124 |
* Wed Feb 8 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-24 |
125 |
- Add --no-floppy to the grub --batch calls. Systems with the |
126 |
floppy controller enabled but no floppy drive installed "hang" |
127 |
in post-upgrade otherwise. [SME: 696] |
128 |
|
129 |
* Mon Jan 30 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-23 |
130 |
- Re-add call to grub-install-raid in post-upgrade [SME: 151] |
131 |
|
132 |
* Mon Jan 30 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-22 |
133 |
- Add --no-floppy to grub-install call in grub-install-raid [SME: 151] |
134 |
- Don't call grub-install-raid in post-upgrade, only post-install [SME: 151] |
135 |
- Cleaned up old comments in grub-install-raid |
136 |
|
137 |
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-21 |
138 |
- Bump release number only |
139 |
|
140 |
* Tue Nov 15 2005 Gordon Rowell <gordonr@e-smith.com> |
141 |
- [0.0.1-20] |
142 |
- Add defined test on $EVENT for cleanliness [MN00106104] |
143 |
|
144 |
* Tue Nov 15 2005 Gordon Rowell <gordonr@e-smith.com> |
145 |
- [0.0.1-19] |
146 |
- Only update default kernel choice in the local event [MN00106104] |
147 |
- Update dependency on e-smith-lib to require version of |
148 |
generic_template_expand which sets EVENT in the template hash |
149 |
|
150 |
* Sun Nov 13 2005 Gordon Rowell <gordonr@e-smith.com> |
151 |
- [0.0.1-18] |
152 |
- Correct path in last fix [SF: 1335937] |
153 |
|
154 |
* Mon Oct 24 2005 Charlie Brady <charlieb@e-smith.com> |
155 |
- [0.0.1-17] |
156 |
- Create "update-bootloader" symlink in /sbin/e-smith, for use by add_mirror |
157 |
script. Add "Provides: e-smith-bootloader", so that e-smith-base can add |
158 |
a generic "Requires:". [SF: 1335937] |
159 |
|
160 |
* Fri Oct 21 2005 Charlie Brady <charlieb@e-smith.com> |
161 |
- [0.0.1-16] |
162 |
- Expand grub.conf template in post-install and post-upgrade, to correct |
163 |
errant hd1,0 references. [SF: 1233029] |
164 |
|
165 |
* Fri Oct 21 2005 Charlie Brady <charlieb@e-smith.com> |
166 |
- [0.0.1-15] |
167 |
- Fix errant hd1,0 references in /boot/grub/grub.conf. This is just a |
168 |
workaround - we should be able to fix anaconda/booty so that they never |
169 |
appear. Tidy up UpdateDefault while we are here. [SF: 1233029] |
170 |
- Update grub-install-raid so that it runs grub for each disk, with each |
171 |
device set as hd0. [SF: 1233029] |
172 |
|
173 |
* Mon Oct 17 2005 Gordon Rowell <gordonr@e-smith.com> |
174 |
- [0.0.1-14] |
175 |
- Typo in grub-install-raid log output [MN00100874, SF: 1233029] |
176 |
|
177 |
* Mon Oct 17 2005 Gordon Rowell <gordonr@e-smith.com> |
178 |
- [0.0.1-13] |
179 |
- Add grub-install-raid action to force to install onto a RAID1 set |
180 |
[MN00100874, SF: 1233029] |
181 |
|
182 |
* Mon Sep 19 2005 Charlie Brady <charlieb@e-smith.com> |
183 |
- [0.0.1-12] |
184 |
- Preserve current default setting in grub.conf template if |
185 |
none of the available kernels matches the currently running |
186 |
kernel. This will allow anaconda SMP detection to determine |
187 |
initial boot setting. [MN00097833] |
188 |
|
189 |
* Tue Aug 30 2005 Charlie Brady <charlieb@e-smith.com> |
190 |
- [0.0.1-11] |
191 |
- Move splashscreen symlink into e-smith-support RPM. |
192 |
|
193 |
* Wed Jul 13 2005 Charlie Brady <charlieb@e-smith.com> |
194 |
- [0.0.1-10] |
195 |
- Obsolete lilo RPM, so that it is removed on upgrade. [SF: 1232519] |
196 |
|
197 |
* Tue Jul 5 2005 Charlie Brady <charlieb@e-smith.com> |
198 |
- [0.0.1-09] |
199 |
- Obsolete e-smith-lilo RPM. [SF: 1232519] |
200 |
|
201 |
* Fri Jun 24 2005 Charlie Brady <charlieb@e-smith.com> |
202 |
- [0.0.1-08] |
203 |
- Move grub.conf template.metadata file a well. [SF: 1226839] |
204 |
|
205 |
* Fri Jun 24 2005 Charlie Brady <charlieb@e-smith.com> |
206 |
- [0.0.1-07] |
207 |
- Template /boot/grub/grub.conf, not /etc/grub.conf. [SF: 1226839] |
208 |
|
209 |
* Mon Jun 13 2005 Charlie Brady <charlieb@e-smith.com> |
210 |
- [0.0.1-06] |
211 |
- Add "Provides: system-logos" to satisfy grub dependency. |
212 |
|
213 |
* Mon Jun 13 2005 Charlie Brady <charlieb@e-smith.com> |
214 |
- [0.0.1-05] |
215 |
- Add linuxinside splashscreen. |
216 |
|
217 |
* Mon Jun 13 2005 Charlie Brady <charlieb@e-smith.com> |
218 |
- [0.0.1-04] |
219 |
- Add tux splashscreen, and use it for grub config. |
220 |
|
221 |
* Wed Jun 8 2005 Charlie Brady <charlieb@e-smith.com> |
222 |
- [0.0.1-03] |
223 |
- Add missing template.metadata file to strip blank lines from |
224 |
grub.conf file. |
225 |
|
226 |
* Tue Jun 7 2005 Charlie Brady <charlieb@e-smith.com> |
227 |
- [0.0.1-02] |
228 |
- Fix grub.conf template expansion. |
229 |
- Put splash.xpm.gz in correct place. |
230 |
|
231 |
* Mon Jun 06 2005 Charlie Brady <charlieb@e-smith.com> |
232 |
- initial release |
233 |
|
234 |
%description |
235 |
e-smith server enhancement to grub bootloader. |
236 |
|
237 |
%prep |
238 |
%setup |
239 |
mkdir -p root/boot/grub2/themes |
240 |
cp %{SOURCE1} root/boot/grub2 |
241 |
%setup -T -D -a 2 |
242 |
mv koozali root/boot/grub2/themes/ |
243 |
%patch0 -p1 |
244 |
%patch1 -p1 |
245 |
%patch2 -p1 |
246 |
%patch3 -p1 |
247 |
%patch4 -p1 |
248 |
rm -rf root/boot/grub |
249 |
%patch5 -p1 |
250 |
|
251 |
%build |
252 |
perl createlinks |
253 |
|
254 |
%install |
255 |
rm -rf $RPM_BUILD_ROOT |
256 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
257 |
rm -f %{name}-%{version}-filelist |
258 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
259 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
260 |
|
261 |
%clean |
262 |
rm -rf $RPM_BUILD_ROOT |
263 |
|
264 |
%files -f %{name}-%{version}-filelist |
265 |
%defattr(-,root,root) |
266 |
|