1 |
|
2012-02-18 Niels Rogalla <niro@magellan-linux.de> |
2 |
|
|
3 |
|
* [r1753] VERSION: |
4 |
|
-version 8.8_20120218 |
5 |
|
* [r1752] new-kernel-pkg: |
6 |
|
new-kernel-pkg fails to find U-Boot. |
7 |
|
|
8 |
|
new-kernel-pkg fails to find U-Boot if the boot directory is not |
9 |
|
on a |
10 |
|
separate partition. |
11 |
|
|
12 |
|
This only affects the U-Boot image creation section of the |
13 |
|
new-kernel-pkg |
14 |
|
script, for ARM based systems. My initial changes were only |
15 |
|
tested on |
16 |
|
specific ARM-OMAP systems that required a specific U-Boot |
17 |
|
partition. |
18 |
|
Testing |
19 |
|
on additional systems (ARM-Tegra) revealed this incorrect |
20 |
|
assumption. |
21 |
|
|
22 |
|
The attached patch includes the following: |
23 |
|
|
24 |
|
- Cosmetic: Correction - change uBoot to U-Boot in comments. |
25 |
|
- Additions: |
26 |
|
-- Recognize ARCH == armv7hl |
27 |
|
-- Make U-Boot load/execute address variable (based on machine) |
28 |
|
-- Bug: Correct invalid assumption that the U-Boot directory |
29 |
|
would |
30 |
|
always |
31 |
|
be on a separate partition. |
32 |
|
* [r1751] grubby.c: |
33 |
|
Try to display title when printing information with '--info' |
34 |
|
|
35 |
|
Signed-off-by: Cleber Rosa <crosa@redhat.com> |
36 |
|
* [r1750] grubby.c: |
37 |
|
Fix endswith() to correctly test its input for validity. |
38 |
|
* [r1749] installkernel, new-kernel-pkg: |
39 |
|
Fix hard coded paths so kernel's "make install" will DTRT. |
40 |
|
* [r1748] grubby.c: |
41 |
|
Implement support for "default saved" for grub2 |
42 |
|
|
43 |
|
Signed-off-by: Cleber Rosa <crosa@redhat.com> |
44 |
|
* [r1747] grubby.c: |
45 |
|
Include prefix when printing kernel information |
46 |
|
|
47 |
|
When running grubby with '--info=', the initrd is displayed with |
48 |
|
the |
49 |
|
boot prefix, so, for correctness, also include it in the kernel |
50 |
|
line. |
51 |
|
|
52 |
|
Signed-off-by: Cleber Rosa <crosa@redhat.com> |
53 |
|
* [r1746] grubby.c: |
54 |
|
Refactor grub2 title extraction, making it a function |
55 |
|
|
56 |
|
'--default-title' now uses that functions, but others such as |
57 |
|
'--info' |
58 |
|
could, IMHO, also display the title and thus, use the refactored |
59 |
|
function. |
60 |
|
|
61 |
|
Signed-off-by: Cleber Rosa <crosa@redhat.com> |
62 |
|
* [r1745] grubby.c: |
63 |
|
Include a / when one is missing in paths (#769641) |
64 |
|
* [r1743] ChangeLog: |
65 |
|
updated ChangeLog |
66 |
|
* [r1742] VERSION: |
67 |
|
-version 8.8 |
68 |
|
* [r1741] test.sh: |
69 |
|
Fix new test case to not care if /boot is a mountpoint... |
70 |
|
* [r1739] ChangeLog: |
71 |
|
updated ChangeLog |
72 |
|
* [r1738] VERSION: |
73 |
|
-version 8.7 |
74 |
|
* [r1737] test.sh, test/results/debug[ADD], |
75 |
|
test/results/debug/g2.1[ADD], test/results/debug/g2.1.2[ADD]: |
76 |
|
Add a test case for --debug. |
77 |
|
|
78 |
|
Make sure --debug works as expected in both successful and failed |
79 |
|
attempts. |
80 |
|
* [r1736] grubby.8, grubby.c: |
81 |
|
grubby: Add --debug option to annotate "suitable template" |
82 |
|
failures |
83 |
|
|
84 |
|
Today, when grubby fails with "no suitable template found" the |
85 |
|
user |
86 |
|
has no idea why that might be. These can fail for several |
87 |
|
reasons. |
88 |
|
So add a --debug option to print out the line in grubby.c where |
89 |
|
it |
90 |
|
failed, a text message describing the failure, and a copy of the |
91 |
|
bootloader entry that failed, to aid investigation. |
92 |
|
|
93 |
|
Signed-off-by: Eric Sandeen <sandeen@redhat.com> |
94 |
|
* [r1734] ChangeLog: |
95 |
|
updated ChangeLog |
96 |
|
* [r1733] VERSION: |
97 |
|
-version 8.6 |
98 |
|
* [r1732] test/results/remove/g2-1.4: |
99 |
|
Fix another test broken by 4bb88f93e6c7cf432e354a164fce8743794a |
100 |
|
* [r1730] ChangeLog: |
101 |
|
updated ChangeLog |
102 |
|
* [r1729] VERSION: |
103 |
|
-version 8.5 |
104 |
|
* [r1728] new-kernel-pkg: |
105 |
|
Don't hardcode dracut path. (#768645) |
106 |
|
|
107 |
|
dracut moved from /sbin to /usr/bin, so fix that, but also it's |
108 |
|
pointless to hardcode what's in PATH. |
109 |
|
* [r1727] grubby.c, test.sh, test/results/remove/g2-1.4[ADD]: |
110 |
|
Use dummy entries for text following kernel entries so it is |
111 |
|
preserved |
112 |
|
(#744717) |
113 |
|
|
114 |
|
Signed-off-by: Adam Williamson <awilliam@redhat.com> |
115 |
|
* [r1726] test/results/defaulttitle/g2.1: |
116 |
|
Fix up one test result for changes from |
117 |
|
4bb88f93e6c7cf432e354a164fce8743794a84a5 |
118 |
|
* [r1724] ChangeLog: |
119 |
|
updated ChangeLog |
120 |
|
* [r1723] VERSION: |
121 |
|
-version 8.4 |
122 |
|
* [r1722] grubby.c, test/grub2.1, test/results/add/g2-1.1, |
123 |
|
test/results/add/g2-1.2, test/results/add/g2-1.3: |
124 |
|
Update "echo 'Loading..." messages to the new kernel version |
125 |
|
|
126 |
|
grub2-mkconfig will create lines like: |
127 |
|
echo 'Loading Linux 3.1.0-0.rc6.git0.0.fc16.x86_64 |
128 |
|
...' |
129 |
|
- depending on the content of /etc/default/grub. |
130 |
|
|
131 |
|
grubby would recognize these lines and replace them with lines |
132 |
|
with the |
133 |
|
right |
134 |
|
version number such as: |
135 |
|
echo 'Loading Fedora (3.1.0-0.rc6.git0.0.fc16.x86_64)' |
136 |
|
|
137 |
|
these lines were however not recognized by grubby and would not |
138 |
|
be |
139 |
|
updated on |
140 |
|
next kernel update when this entry would be used as template. |
141 |
|
|
142 |
|
With this patch grubby will no longer look for a specific title |
143 |
|
but |
144 |
|
patch any |
145 |
|
"echo 'Loading" line immediately before the kernel line. |
146 |
|
|
147 |
|
Signed-off-by: Adam Williamson <awilliam@redhat.com> |
148 |
|
* [r1721] grubby.8, grubby.c, test.sh, |
149 |
|
test/results/defaulttitle[ADD], |
150 |
|
test/results/defaulttitle/g.1[ADD], |
151 |
|
test/results/defaulttitle/g.10[ADD], |
152 |
|
test/results/defaulttitle/g.11[ADD], |
153 |
|
test/results/defaulttitle/g.2[ADD], |
154 |
|
test/results/defaulttitle/g.3[ADD], |
155 |
|
test/results/defaulttitle/g.4[ADD], |
156 |
|
test/results/defaulttitle/g.5[ADD], |
157 |
|
test/results/defaulttitle/g.6[ADD], |
158 |
|
test/results/defaulttitle/g.7[ADD], |
159 |
|
test/results/defaulttitle/g.8[ADD], |
160 |
|
test/results/defaulttitle/g.9[ADD], |
161 |
|
test/results/defaulttitle/g2.1[ADD], |
162 |
|
test/results/defaulttitle/g2.2[ADD]: |
163 |
|
Add new '--default-title' feature. |
164 |
|
|
165 |
|
This displays the title of the default entry directly from the |
166 |
|
parsed configuration file. |
167 |
|
|
168 |
|
Signed-off-by: Cleber Rosa <crosa@redhat.com> |
169 |
|
* [r1720] grubby.8, grubby.c, test.sh, |
170 |
|
test/results/defaultindex[ADD], test/results/defaultindex/0[ADD], |
171 |
|
test/results/defaultindex/2[ADD]: |
172 |
|
Add new '--default-index' feature. |
173 |
|
|
174 |
|
This displays the (numeric) index of the default entry directly |
175 |
|
from the parsed configuration file. |
176 |
|
|
177 |
|
Signed-off-by: Cleber Rosa <crosa@redhat.com> |
178 |
|
* [r1719] test.sh: |
179 |
|
test.sh: add feature for testing the output of a grubby command |
180 |
|
|
181 |
|
Instead of comparing the configuration file that gets generated |
182 |
|
by |
183 |
|
a grubby command |
184 |
|
|
185 |
|
Signed-off-by: Cleber Rosa <crosa@redhat.com> |
186 |
|
* [r1718] grubby.c: |
187 |
|
GRUB: Fix detection by increasing offset when comparing stage1 to |
188 |
|
MBR |
189 |
|
|
190 |
|
A couple of instructions of grub's stage1 get modified when |
191 |
|
copied to |
192 |
|
the |
193 |
|
MBR (replaced by NOOPs). Check for this condition, and skip these |
194 |
|
bytes |
195 |
|
while compare stage1 and MBR. |
196 |
|
|
197 |
|
Signed-off-by: Cleber Rosa <crosa@redhat.com> |
198 |
|
* [r1717] grubby.c: |
199 |
|
Don't crash if grubConfig not found. |
200 |
|
|
201 |
|
I trigger this crash on my system. It has syslinux and no grub. |
202 |
|
|
203 |
|
Signed-off-by: Christopher Li <kernel@chrisli.org> |
204 |
|
* [r1716] new-kernel-pkg: |
205 |
|
Adding extlinux support for new-kernel-pkg |
206 |
|
|
207 |
|
Signed-off-by: Christopher Li <kernel@chrisli.org> |
208 |
|
* [r1715] grubby.c: |
209 |
|
Look for other possible grub config files |
210 |
|
|
211 |
|
Since debian and Ubuntu don't symlink /boot/grub/menu.lst |
212 |
|
to /etc/grub.conf, make it possible to look them over on |
213 |
|
this original location as well. |
214 |
|
|
215 |
|
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com> |
216 |
|
* [r1714] grubby.c: |
217 |
|
Make grubby to recognize Ubuntu's spin of Grub2 |
218 |
|
|
219 |
|
We are looking to use grubby as a bootloader entries |
220 |
|
manager for the autotest project: |
221 |
|
|
222 |
|
http://autotest.kernel.org/ |
223 |
|
|
224 |
|
The project aims to cover more distros than just |
225 |
|
red hat based ones, so this small patch fixes the |
226 |
|
tool under Ubuntu. They have chosen to name grub2 |
227 |
|
grub, in all directory references. Also, they don't |
228 |
|
make symlinks of grub config files on /etc. So, |
229 |
|
adapt the code to take into consideration this |
230 |
|
behavior. |
231 |
|
|
232 |
|
Changes from v1: |
233 |
|
* Removed nested set of {} |
234 |
|
* Made the return in case /etc/grub.d is found |
235 |
|
indented |
236 |
|
* Moved the dbgPrint("not found\n") statement |
237 |
|
before the last return. Also, put a new |
238 |
|
dbgPrint("found\n") if we've found a suitable |
239 |
|
grub2 config file ubuntu/debian style. |
240 |
|
|
241 |
|
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com> |
242 |
|
* [r1712] ChangeLog: |
243 |
|
updated ChangeLog |
244 |
|
* [r1711] VERSION: |
245 |
|
-version 8.3 |
246 |
|
* [r1710] new-kernel-pkg: |
247 |
|
Fix new-kernel-pkg invocation of grubby for grub (bz 725185) |
248 |
|
|
249 |
|
new-kernel-pkg did not specify --grub when it called grubby to |
250 |
|
update the |
251 |
|
kernel entry with an initrd. Grubby would then try to probe what |
252 |
|
to |
253 |
|
do and |
254 |
|
would give preference to grub2 and thus leave an incomplete grub |
255 |
|
entry. |
256 |
|
|
257 |
|
new-kernel-pkg did also not specify the grub config file |
258 |
|
explicitly |
259 |
|
to |
260 |
|
grubby as it do for the grub2 config file. That could perhaps in |
261 |
|
some |
262 |
|
situations cause grubby to do something else than new-kernel-pkg |
263 |
|
expected. |
264 |
|
|
265 |
|
Now --grub -c $grubConfig is specified explicitly in all cases. |
266 |
|
* [r1708] ChangeLog: |
267 |
|
updated ChangeLog |
268 |
|
* [r1707] VERSION: |
269 |
|
-version 8.2 |
270 |
|
* [r1706] new-kernel-pkg: |
271 |
|
Read HYPERVISOR and HYPERVISOR_ARGS from /etc/conf.d/grubby and |
272 |
|
set |
273 |
|
mbkernel and mbargs Signed-off-by: W. Michael Petullo |
274 |
|
<mike@flyn.org> |
275 |
|
* [r1704] ChangeLog: |
276 |
|
updated ChangeLog |
277 |
|
* [r1703] VERSION: |
278 |
|
-version 8.1 |
279 |
|
* [r1702] new-kernel-pkg: |
280 |
|
Fix a miss-spelled variable name. |
281 |
|
|
282 |
|
"grub2Config", not "grub2Cfg". |
283 |
|
* [r1700] ChangeLog: |
284 |
|
updated ChangeLog |
285 |
|
* [r1699] VERSION: |
286 |
|
-version 8.0 |
287 |
|
* [r1698] test.sh, test/grub2.1[ADD], test/grub2.2[ADD], |
288 |
|
test/results/add/g2-1.1[ADD], test/results/add/g2-1.2[ADD], |
289 |
|
test/results/add/g2-1.3[ADD], test/results/add/g2-1.4[ADD]: |
290 |
|
Add some limited test cases for grub2. |
291 |
|
* [r1697] new-kernel-pkg: |
292 |
|
Update grub2 support to new-kernel-pkg |
293 |
|
|
294 |
|
This uses grubby for grub2 on efi and non-efi machines. |
295 |
|
|
296 |
|
2012-02-17 Niels Rogalla <niro@magellan-linux.de> |
297 |
|
|
298 |
|
* [r1696] grubby.c: |
299 |
|
Add grub2.cfg support to grubby. |
300 |
|
* [r1695] Makefile: |
301 |
|
Add -ggdb |
302 |
|
* [r1694] Makefile, grubby.c: |
303 |
|
Tweak some make options. |
304 |
|
|
305 |
|
Some functions are only used in dbgPrintf() arguments. As such, |
306 |
|
errors/warnings on unused functions need to be disabled. |
307 |
|
|
308 |
|
Also, use -std=gnu99. |
309 |
|
|
310 |
|
Also, add a debug target. |
311 |
|
* [r1693] grubby.c: |
312 |
|
Rename entrySeparator to entryStart. |
313 |
|
|
314 |
|
Since we're actually using it to detect the start of an entry |
315 |
|
(and |
316 |
|
specifically not the end), name this slightly better. |
317 |
|
* [r1692] grubby.c: |
318 |
|
Convert configFileInfo structs to C99-style initializers. |
319 |
|
|
320 |
|
Get rid of the old initializers where struct names were commends, |
321 |
|
in |
322 |
|
favor of C99-style assignment, so new fields can be put at |
323 |
|
logical |
324 |
|
places without having to change the whole file. |
325 |
|
* [r1691] new-kernel-pkg, uboot[ADD]: |
326 |
|
Add uboot support for ARM (#712199) |
327 |
|
|
328 |
2011-07-19 Niels Rogalla <niro@magellan-linux.de> |
2011-07-19 Niels Rogalla <niro@magellan-linux.de> |
329 |
|
|
330 |
|
* [r1433] ChangeLog[ADD]: |
331 |
|
-added ChangeLog |
332 |
* [r1432] VERSION: |
* [r1432] VERSION: |
333 |
-version 7.0.18 - upstream fixed grub2 errors in new-kernel-pkg, |
-version 7.0.18 - upstream fixed grub2 errors in new-kernel-pkg, |
334 |
which we already done in our port of 7.0.17. ver up to be in sync |
which we already done in our port of 7.0.17. ver up to be in sync |