1 |
# $Id: e-smith-grub.spec,v 1.3 2013/03/01 23:20:10 slords Exp $ |
2 |
|
3 |
Summary: e-smith module to configure grub |
4 |
%define name e-smith-grub |
5 |
Name: %{name} |
6 |
%define version 2.4.0 |
7 |
%define release 4 |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
13 |
Source1: smeserver.xpm.gz |
14 |
Patch1: e-smith-grub-2.4.0-noplymouth.patch |
15 |
Patch2: e-smith-grub-2.4.0-remove_motd_txt_from_grub_cfg.patch |
16 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
17 |
BuildRequires: e-smith-devtools |
18 |
BuildArchitectures: noarch |
19 |
Requires: e-smith-lib >= 1.15.3-17 |
20 |
Requires: grub |
21 |
Provides: system-logos |
22 |
Obsoletes: e-smith-lilo |
23 |
Provides: e-smith-bootloader |
24 |
Obsoletes: lilo |
25 |
AutoReqProv: no |
26 |
|
27 |
%changelog |
28 |
* Wed Jan 20 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-4.sme |
29 |
- Remove motd text from grub.cfg [SME: 9161] |
30 |
|
31 |
* Fri Mar 1 2013 Shad L. Lords <slords@mail.com> 2.4.0-3.sme |
32 |
- Revert previous rhgb patch and disable plymouth [SME: 7354] |
33 |
|
34 |
* Tue Feb 19 2013 Shad L. Lords <slords@mail.com> 2.4.0-2.sme |
35 |
- Remove rhgb option from grub [SME: 7354] |
36 |
|
37 |
* Thu Jan 31 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme |
38 |
- Roll new stream for sme9 |
39 |
|
40 |
* Wed Nov 4 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-2.sme |
41 |
- Remove hiddenmenu entry from grub.conf [SME: 5546] |
42 |
|
43 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
44 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
45 |
|
46 |
* Fri Mar 21 2008 Shad L. Lords <slords@mail.com> 1.0.0-7 |
47 |
- Fix up CentOS titles in grub.conf [SME: 4084] |
48 |
|
49 |
* Fri Jul 13 2007 Shad L. Lords <slords@mail.com> 1.0.0-6 |
50 |
- Add smeserver splash screen for grub [SME: 3152] |
51 |
|
52 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
53 |
- Clean up spec so package can be built by koji/plague |
54 |
|
55 |
* Thu Jan 04 2007 Shad L. Lords <slords@mail.com> 1.0.0-5 |
56 |
- Update /etc/sysconfig/kernel on boot too. [SME: 1930] |
57 |
|
58 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
59 |
- Update to new release naming. No functional changes. |
60 |
- Make Packager generic |
61 |
|
62 |
* Tue Dec 05 2006 Shad L. Lords <slords@mail.com> 1.0.0-03 |
63 |
- Remove grub-install-raid completely as it doesn't handle more |
64 |
than raid1 [SME: 2131] |
65 |
|
66 |
* Thu Mar 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-02 |
67 |
- Rebuild without the test release tag [SME: 1197] |
68 |
|
69 |
* Thu Mar 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-01test01 |
70 |
- Remove grub-install-raid from post-{install,upgrade} [SME: 1197] |
71 |
|
72 |
* Thu Mar 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-01 |
73 |
- Roll stable stream version. [SME: 1016] |
74 |
|
75 |
* Wed Feb 8 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-24 |
76 |
- Add --no-floppy to the grub --batch calls. Systems with the |
77 |
floppy controller enabled but no floppy drive installed "hang" |
78 |
in post-upgrade otherwise. [SME: 696] |
79 |
|
80 |
* Mon Jan 30 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-23 |
81 |
- Re-add call to grub-install-raid in post-upgrade [SME: 151] |
82 |
|
83 |
* Mon Jan 30 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-22 |
84 |
- Add --no-floppy to grub-install call in grub-install-raid [SME: 151] |
85 |
- Don't call grub-install-raid in post-upgrade, only post-install [SME: 151] |
86 |
- Cleaned up old comments in grub-install-raid |
87 |
|
88 |
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-21 |
89 |
- Bump release number only |
90 |
|
91 |
* Tue Nov 15 2005 Gordon Rowell <gordonr@e-smith.com> |
92 |
- [0.0.1-20] |
93 |
- Add defined test on $EVENT for cleanliness [MN00106104] |
94 |
|
95 |
* Tue Nov 15 2005 Gordon Rowell <gordonr@e-smith.com> |
96 |
- [0.0.1-19] |
97 |
- Only update default kernel choice in the local event [MN00106104] |
98 |
- Update dependency on e-smith-lib to require version of |
99 |
generic_template_expand which sets EVENT in the template hash |
100 |
|
101 |
* Sun Nov 13 2005 Gordon Rowell <gordonr@e-smith.com> |
102 |
- [0.0.1-18] |
103 |
- Correct path in last fix [SF: 1335937] |
104 |
|
105 |
* Mon Oct 24 2005 Charlie Brady <charlieb@e-smith.com> |
106 |
- [0.0.1-17] |
107 |
- Create "update-bootloader" symlink in /sbin/e-smith, for use by add_mirror |
108 |
script. Add "Provides: e-smith-bootloader", so that e-smith-base can add |
109 |
a generic "Requires:". [SF: 1335937] |
110 |
|
111 |
* Fri Oct 21 2005 Charlie Brady <charlieb@e-smith.com> |
112 |
- [0.0.1-16] |
113 |
- Expand grub.conf template in post-install and post-upgrade, to correct |
114 |
errant hd1,0 references. [SF: 1233029] |
115 |
|
116 |
* Fri Oct 21 2005 Charlie Brady <charlieb@e-smith.com> |
117 |
- [0.0.1-15] |
118 |
- Fix errant hd1,0 references in /boot/grub/grub.conf. This is just a |
119 |
workaround - we should be able to fix anaconda/booty so that they never |
120 |
appear. Tidy up UpdateDefault while we are here. [SF: 1233029] |
121 |
- Update grub-install-raid so that it runs grub for each disk, with each |
122 |
device set as hd0. [SF: 1233029] |
123 |
|
124 |
* Mon Oct 17 2005 Gordon Rowell <gordonr@e-smith.com> |
125 |
- [0.0.1-14] |
126 |
- Typo in grub-install-raid log output [MN00100874, SF: 1233029] |
127 |
|
128 |
* Mon Oct 17 2005 Gordon Rowell <gordonr@e-smith.com> |
129 |
- [0.0.1-13] |
130 |
- Add grub-install-raid action to force to install onto a RAID1 set |
131 |
[MN00100874, SF: 1233029] |
132 |
|
133 |
* Mon Sep 19 2005 Charlie Brady <charlieb@e-smith.com> |
134 |
- [0.0.1-12] |
135 |
- Preserve current default setting in grub.conf template if |
136 |
none of the available kernels matches the currently running |
137 |
kernel. This will allow anaconda SMP detection to determine |
138 |
initial boot setting. [MN00097833] |
139 |
|
140 |
* Tue Aug 30 2005 Charlie Brady <charlieb@e-smith.com> |
141 |
- [0.0.1-11] |
142 |
- Move splashscreen symlink into e-smith-support RPM. |
143 |
|
144 |
* Wed Jul 13 2005 Charlie Brady <charlieb@e-smith.com> |
145 |
- [0.0.1-10] |
146 |
- Obsolete lilo RPM, so that it is removed on upgrade. [SF: 1232519] |
147 |
|
148 |
* Tue Jul 5 2005 Charlie Brady <charlieb@e-smith.com> |
149 |
- [0.0.1-09] |
150 |
- Obsolete e-smith-lilo RPM. [SF: 1232519] |
151 |
|
152 |
* Fri Jun 24 2005 Charlie Brady <charlieb@e-smith.com> |
153 |
- [0.0.1-08] |
154 |
- Move grub.conf template.metadata file a well. [SF: 1226839] |
155 |
|
156 |
* Fri Jun 24 2005 Charlie Brady <charlieb@e-smith.com> |
157 |
- [0.0.1-07] |
158 |
- Template /boot/grub/grub.conf, not /etc/grub.conf. [SF: 1226839] |
159 |
|
160 |
* Mon Jun 13 2005 Charlie Brady <charlieb@e-smith.com> |
161 |
- [0.0.1-06] |
162 |
- Add "Provides: system-logos" to satisfy grub dependency. |
163 |
|
164 |
* Mon Jun 13 2005 Charlie Brady <charlieb@e-smith.com> |
165 |
- [0.0.1-05] |
166 |
- Add linuxinside splashscreen. |
167 |
|
168 |
* Mon Jun 13 2005 Charlie Brady <charlieb@e-smith.com> |
169 |
- [0.0.1-04] |
170 |
- Add tux splashscreen, and use it for grub config. |
171 |
|
172 |
* Wed Jun 8 2005 Charlie Brady <charlieb@e-smith.com> |
173 |
- [0.0.1-03] |
174 |
- Add missing template.metadata file to strip blank lines from |
175 |
grub.conf file. |
176 |
|
177 |
* Tue Jun 7 2005 Charlie Brady <charlieb@e-smith.com> |
178 |
- [0.0.1-02] |
179 |
- Fix grub.conf template expansion. |
180 |
- Put splash.xpm.gz in correct place. |
181 |
|
182 |
* Mon Jun 06 2005 Charlie Brady <charlieb@e-smith.com> |
183 |
- initial release |
184 |
|
185 |
%description |
186 |
e-smith server enhancement to grub bootloader. |
187 |
|
188 |
%prep |
189 |
%setup |
190 |
%patch1 -p1 |
191 |
%patch2 -p1 |
192 |
cp %{SOURCE1} root/boot/grub/ |
193 |
|
194 |
%build |
195 |
perl createlinks |
196 |
mkdir -p root/etc/e-smith/events/local/templates2expand/etc/sysconfig |
197 |
touch root/etc/e-smith/events/local/templates2expand/etc/sysconfig/kernel |
198 |
|
199 |
%install |
200 |
rm -rf $RPM_BUILD_ROOT |
201 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
202 |
rm -f %{name}-%{version}-filelist |
203 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
204 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
205 |
|
206 |
%clean |
207 |
rm -rf $RPM_BUILD_ROOT |
208 |
|
209 |
%files -f %{name}-%{version}-filelist |
210 |
%defattr(-,root,root) |
211 |
|