1 |
robbat2 08/03/25 06:11:53 |
2 |
|
3 |
Modified: 015_all_grub-0.96-unsigned-addresses.patch |
4 |
021_all_grub-0.97-grub-special_device_names.patch |
5 |
040_all_grub-0.96-nxstack.patch |
6 |
070_all_grub-0.97-initrd_max_address.patch |
7 |
080_all_grub-0.97-geometry-26kernel.patch |
8 |
090_all_grub-0.97-intelmac.patch |
9 |
600_all_grub-0.97-gpt-partition-table.patch |
10 |
Added: 700_all_grub-0.97-grub-install_addsyncs.patch |
11 |
710_all_grub-0.97-grub-install_regexp.patch |
12 |
720_all_grub-0.97-grub-install_aoe_support.patch |
13 |
800_all_grub-0.97-crossreference_manpages.patch |
14 |
810_all_grub-0.97-ext3_256byte_inode.patch |
15 |
README-DEBIAN-PATCHES |
16 |
Log: |
17 |
Add all the patches for grub-0.97-r5. |
18 |
|
19 |
Revision Changes Path |
20 |
1.2 src/patchsets/grub/0.97/015_all_grub-0.96-unsigned-addresses.patch |
21 |
|
22 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/015_all_grub-0.96-unsigned-addresses.patch?rev=1.2&view=markup |
23 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/015_all_grub-0.96-unsigned-addresses.patch?rev=1.2&content-type=text/plain |
24 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/015_all_grub-0.96-unsigned-addresses.patch?r1=1.1&r2=1.2 |
25 |
|
26 |
Index: 015_all_grub-0.96-unsigned-addresses.patch |
27 |
=================================================================== |
28 |
RCS file: /var/cvsroot/gentoo/src/patchsets/grub/0.97/015_all_grub-0.96-unsigned-addresses.patch,v |
29 |
retrieving revision 1.1 |
30 |
retrieving revision 1.2 |
31 |
diff -p -w -b -B -u -u -r1.1 -r1.2 |
32 |
--- 015_all_grub-0.96-unsigned-addresses.patch 8 Nov 2005 02:49:51 -0000 1.1 |
33 |
+++ 015_all_grub-0.96-unsigned-addresses.patch 25 Mar 2008 06:11:53 -0000 1.2 |
34 |
@@ -1,9 +1,10 @@ |
35 |
+Upstream-Bug: http://savannah.gnu.org/bugs/?func=detailitem&item_id=9954 |
36 |
+Gentoo-Bug: http://bugs.gentoo.org/99897 |
37 |
+Debian-Patch: 2gb_limit.diff |
38 |
+ |
39 |
Patch from upstream bug tracker to fix memory checks on systems with a lot of |
40 |
ram (like 2G+, sizes that overflow a signed integer). |
41 |
|
42 |
-http://savannah.gnu.org/bugs/?func=detailitem&item_id=9954 |
43 |
-http://bugs.gentoo.org/99897 |
44 |
- |
45 |
--- grub-0.97/stage2/char_io.c |
46 |
+++ grub-0.97/stage2/char_io.c |
47 |
@@ -1214,7 +1214,7 @@ grub_strlen (const char *str) |
48 |
|
49 |
|
50 |
|
51 |
1.2 src/patchsets/grub/0.97/021_all_grub-0.97-grub-special_device_names.patch |
52 |
|
53 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/021_all_grub-0.97-grub-special_device_names.patch?rev=1.2&view=markup |
54 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/021_all_grub-0.97-grub-special_device_names.patch?rev=1.2&content-type=text/plain |
55 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/021_all_grub-0.97-grub-special_device_names.patch?r1=1.1&r2=1.2 |
56 |
|
57 |
Index: 021_all_grub-0.97-grub-special_device_names.patch |
58 |
=================================================================== |
59 |
RCS file: /var/cvsroot/gentoo/src/patchsets/grub/0.97/021_all_grub-0.97-grub-special_device_names.patch,v |
60 |
retrieving revision 1.1 |
61 |
retrieving revision 1.2 |
62 |
diff -p -w -b -B -u -u -r1.1 -r1.2 |
63 |
--- 021_all_grub-0.97-grub-special_device_names.patch 8 Sep 2006 05:47:25 -0000 1.1 |
64 |
+++ 021_all_grub-0.97-grub-special_device_names.patch 25 Mar 2008 06:11:53 -0000 1.2 |
65 |
@@ -1,3 +1,5 @@ |
66 |
+Debian-Patch: grub-special_device_names.diff |
67 |
+ |
68 |
--- trunk/lib/device.c.old 2006-06-24 17:36:59.248122032 +0200 |
69 |
+++ trunk/lib/device.c 2006-06-24 17:38:52.999829144 +0200 |
70 |
@@ -1115,6 +1115,8 @@ |
71 |
|
72 |
|
73 |
|
74 |
1.5 src/patchsets/grub/0.97/040_all_grub-0.96-nxstack.patch |
75 |
|
76 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/040_all_grub-0.96-nxstack.patch?rev=1.5&view=markup |
77 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/040_all_grub-0.96-nxstack.patch?rev=1.5&content-type=text/plain |
78 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/040_all_grub-0.96-nxstack.patch?r1=1.4&r2=1.5 |
79 |
|
80 |
Index: 040_all_grub-0.96-nxstack.patch |
81 |
=================================================================== |
82 |
RCS file: /var/cvsroot/gentoo/src/patchsets/grub/0.97/040_all_grub-0.96-nxstack.patch,v |
83 |
retrieving revision 1.4 |
84 |
retrieving revision 1.5 |
85 |
diff -p -w -b -B -u -u -r1.4 -r1.5 |
86 |
--- 040_all_grub-0.96-nxstack.patch 20 Jul 2006 01:23:53 -0000 1.4 |
87 |
+++ 040_all_grub-0.96-nxstack.patch 25 Mar 2008 06:11:53 -0000 1.5 |
88 |
@@ -1,3 +1,5 @@ |
89 |
+Debian-Patch: mprotect.diff (older version) |
90 |
+ |
91 |
Fix NX segfaulting on amd64. |
92 |
|
93 |
Patch by Peter Jones. |
94 |
|
95 |
|
96 |
|
97 |
1.2 src/patchsets/grub/0.97/070_all_grub-0.97-initrd_max_address.patch |
98 |
|
99 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/070_all_grub-0.97-initrd_max_address.patch?rev=1.2&view=markup |
100 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/070_all_grub-0.97-initrd_max_address.patch?rev=1.2&content-type=text/plain |
101 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/070_all_grub-0.97-initrd_max_address.patch?r1=1.1&r2=1.2 |
102 |
|
103 |
Index: 070_all_grub-0.97-initrd_max_address.patch |
104 |
=================================================================== |
105 |
RCS file: /var/cvsroot/gentoo/src/patchsets/grub/0.97/070_all_grub-0.97-initrd_max_address.patch,v |
106 |
retrieving revision 1.1 |
107 |
retrieving revision 1.2 |
108 |
diff -p -w -b -B -u -u -r1.1 -r1.2 |
109 |
--- 070_all_grub-0.97-initrd_max_address.patch 8 Sep 2006 05:47:25 -0000 1.1 |
110 |
+++ 070_all_grub-0.97-initrd_max_address.patch 25 Mar 2008 06:11:53 -0000 1.2 |
111 |
@@ -1,3 +1,4 @@ |
112 |
+Debian-Patch: initrd_max_address.diff |
113 |
|
114 |
Date: 2005-11-11 |
115 |
Author: Otavio Salvador |
116 |
|
117 |
|
118 |
|
119 |
1.2 src/patchsets/grub/0.97/080_all_grub-0.97-geometry-26kernel.patch |
120 |
|
121 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/080_all_grub-0.97-geometry-26kernel.patch?rev=1.2&view=markup |
122 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/080_all_grub-0.97-geometry-26kernel.patch?rev=1.2&content-type=text/plain |
123 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/080_all_grub-0.97-geometry-26kernel.patch?r1=1.1&r2=1.2 |
124 |
|
125 |
Index: 080_all_grub-0.97-geometry-26kernel.patch |
126 |
=================================================================== |
127 |
RCS file: /var/cvsroot/gentoo/src/patchsets/grub/0.97/080_all_grub-0.97-geometry-26kernel.patch,v |
128 |
retrieving revision 1.1 |
129 |
retrieving revision 1.2 |
130 |
diff -p -w -b -B -u -u -r1.1 -r1.2 |
131 |
--- 080_all_grub-0.97-geometry-26kernel.patch 8 Sep 2006 05:47:25 -0000 1.1 |
132 |
+++ 080_all_grub-0.97-geometry-26kernel.patch 25 Mar 2008 06:11:53 -0000 1.2 |
133 |
@@ -1,3 +1,4 @@ |
134 |
+Debian-Patch: geometry-26kernel.diff |
135 |
|
136 |
Date: 2005-11-11 |
137 |
Author: Otavio Salvador |
138 |
|
139 |
|
140 |
|
141 |
1.2 src/patchsets/grub/0.97/090_all_grub-0.97-intelmac.patch |
142 |
|
143 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/090_all_grub-0.97-intelmac.patch?rev=1.2&view=markup |
144 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/090_all_grub-0.97-intelmac.patch?rev=1.2&content-type=text/plain |
145 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/090_all_grub-0.97-intelmac.patch?r1=1.1&r2=1.2 |
146 |
|
147 |
Index: 090_all_grub-0.97-intelmac.patch |
148 |
=================================================================== |
149 |
RCS file: /var/cvsroot/gentoo/src/patchsets/grub/0.97/090_all_grub-0.97-intelmac.patch,v |
150 |
retrieving revision 1.1 |
151 |
retrieving revision 1.2 |
152 |
diff -p -w -b -B -u -u -r1.1 -r1.2 |
153 |
--- 090_all_grub-0.97-intelmac.patch 8 Sep 2006 05:47:25 -0000 1.1 |
154 |
+++ 090_all_grub-0.97-intelmac.patch 25 Mar 2008 06:11:53 -0000 1.2 |
155 |
@@ -1,3 +1,4 @@ |
156 |
+Debian-Patch: intelmac.diff |
157 |
--- grub-0.97.orig/stage2/asm.S 2004-06-19 18:55:22.000000000 +0200 |
158 |
+++ grub-0.97/stage2/asm.S 2006-04-21 11:10:52.000000000 +0200 |
159 |
@@ -1651,7 +1651,29 @@ |
160 |
|
161 |
|
162 |
|
163 |
1.2 src/patchsets/grub/0.97/600_all_grub-0.97-gpt-partition-table.patch |
164 |
|
165 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/600_all_grub-0.97-gpt-partition-table.patch?rev=1.2&view=markup |
166 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/600_all_grub-0.97-gpt-partition-table.patch?rev=1.2&content-type=text/plain |
167 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/600_all_grub-0.97-gpt-partition-table.patch?r1=1.1&r2=1.2 |
168 |
|
169 |
Index: 600_all_grub-0.97-gpt-partition-table.patch |
170 |
=================================================================== |
171 |
RCS file: /var/cvsroot/gentoo/src/patchsets/grub/0.97/600_all_grub-0.97-gpt-partition-table.patch,v |
172 |
retrieving revision 1.1 |
173 |
retrieving revision 1.2 |
174 |
diff -p -w -b -B -u -u -r1.1 -r1.2 |
175 |
--- 600_all_grub-0.97-gpt-partition-table.patch 1 Mar 2008 21:06:47 -0000 1.1 |
176 |
+++ 600_all_grub-0.97-gpt-partition-table.patch 25 Mar 2008 06:11:53 -0000 1.2 |
177 |
@@ -4,6 +4,8 @@ This was originally posted at http://www |
178 |
but it contained a couple of misplaced braces after where statements, causing |
179 |
the intended bodies of the while statements to never execute. |
180 |
|
181 |
+Signed-off-by: Robin H. Johnson <robbat2@g.o> |
182 |
+ |
183 |
diff -Nuar --exclude '*.orig' grub-0.97.orig/stage2/builtins.c grub-0.97/stage2/builtins.c |
184 |
--- grub-0.97.orig/stage2/builtins.c 2008-02-29 18:14:44.646824000 -0800 |
185 |
+++ grub-0.97/stage2/builtins.c 2008-02-29 18:18:49.442695487 -0800 |
186 |
|
187 |
|
188 |
|
189 |
1.1 src/patchsets/grub/0.97/700_all_grub-0.97-grub-install_addsyncs.patch |
190 |
|
191 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/700_all_grub-0.97-grub-install_addsyncs.patch?rev=1.1&view=markup |
192 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/700_all_grub-0.97-grub-install_addsyncs.patch?rev=1.1&content-type=text/plain |
193 |
|
194 |
Index: 700_all_grub-0.97-grub-install_addsyncs.patch |
195 |
=================================================================== |
196 |
Debian-Patch: grub-install_addsyncs.diff |
197 |
|
198 |
Date: 2005-11-11 |
199 |
Author: Otavio Salvador |
200 |
Comment: Stolen from Fedora grub package. |
201 |
Add syncs to ensure that filesystem cache are flushed. |
202 |
|
203 |
-- Original comment, bellow |
204 |
|
205 |
I just found another semi-critical bug, whose fix should really get |
206 |
into 0.91. |
207 |
|
208 |
It turns out that "grub-install" doesn't have any "sync" calls to make |
209 |
sure any filesystem caches are coherent with the raw devices they are |
210 |
on top of... so if your filesystem waits to write out any data from the |
211 |
copy command in the script to put the "stage1" and "stage2" in their |
212 |
final location, you're hosed. |
213 |
|
214 |
I found this because it just bit me on one of my systems running stock |
215 |
RedHat 7.2 with a large "stage2". |
216 |
|
217 |
The only script that is patched here is "grub-install". The others |
218 |
don't appear to need it as they either unmount things first or don't |
219 |
refer to devices. |
220 |
|
221 |
Hmm. Maybe the right fix is to make the "sync" system call when |
222 |
starting the GRUB shell with a device map that refers to any real disks |
223 |
or something like that. |
224 |
|
225 |
Erich Stefan Boleyn <erich@××××.org> http://www.uruk.org/ |
226 |
"Reality is truly stranger than fiction; Probably why fiction is so popular" |
227 |
|
228 |
--- grub-0.94/util/grub-install.in.addsync 2004-02-02 17:22:26.672520324 -0500 |
229 |
+++ grub-0.94/util/grub-install.in 2004-02-02 17:23:16.147712327 -0500 |
230 |
@@ -351,6 +351,10 @@ |
231 |
# Create a safe temporary file. |
232 |
test -n "$mklog" && log_file=`$mklog` |
233 |
|
234 |
+ # Before all invocations of the grub shell, call sync to make sure |
235 |
+ # the raw device is in sync with any bufferring in filesystems. |
236 |
+ sync |
237 |
+ |
238 |
$grub_shell --batch $no_floppy --device-map=$device_map <<EOF >$log_file |
239 |
quit |
240 |
EOF |
241 |
@@ -457,6 +461,10 @@ |
242 |
# Create a safe temporary file. |
243 |
test -n "$mklog" && log_file=`$mklog` |
244 |
|
245 |
+# Before all invocations of the grub shell, call sync to make sure |
246 |
+# the raw device is in sync with any bufferring in filesystems. |
247 |
+sync |
248 |
+ |
249 |
# Now perform the installation. |
250 |
$grub_shell --batch $no_floppy --device-map=$device_map <<EOF >$log_file |
251 |
root $root_drive |
252 |
|
253 |
|
254 |
|
255 |
1.1 src/patchsets/grub/0.97/710_all_grub-0.97-grub-install_regexp.patch |
256 |
|
257 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/710_all_grub-0.97-grub-install_regexp.patch?rev=1.1&view=markup |
258 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/710_all_grub-0.97-grub-install_regexp.patch?rev=1.1&content-type=text/plain |
259 |
|
260 |
Index: 710_all_grub-0.97-grub-install_regexp.patch |
261 |
=================================================================== |
262 |
Debian-Patch: grub-install_regexp.diff |
263 |
--- a/util/grub-install.in~ 2004-07-24 15:57:31.000000000 -0300 |
264 |
+++ b/util/grub-install.in 2006-04-17 08:59:54.000000000 -0300 |
265 |
@@ -131,7 +131,7 @@ |
266 |
|
267 |
# Get the drive name. |
268 |
tmp_drive=`grep -v '^#' $device_map | grep "$tmp_disk *$" \ |
269 |
- | sed 's%.*\(([hf]d[0-9][a-g0-9,]*)\).*%\1%'` |
270 |
+ | sed 's%.*\(([hf]d[0-9][a-z0-9,]*)\).*%\1%'` |
271 |
|
272 |
# If not found, print an error message and exit. |
273 |
if test "x$tmp_drive" = x; then |
274 |
@@ -148,13 +148,13 @@ |
275 |
gnu*) |
276 |
if echo $tmp_part | grep "^s" >/dev/null; then |
277 |
tmp_pc_slice=`echo $tmp_part \ |
278 |
- | sed "s%s\([0-9]*\)[a-g]*$%\1%"` |
279 |
+ | sed "s%s\([0-9]*\)[a-z]*$%\1%"` |
280 |
tmp_drive=`echo "$tmp_drive" \ |
281 |
| sed "s%)%,\`expr "$tmp_pc_slice" - 1\`)%"` |
282 |
fi |
283 |
- if echo $tmp_part | grep "[a-g]$" >/dev/null; then |
284 |
+ if echo $tmp_part | grep "[a-z]$" >/dev/null; then |
285 |
tmp_bsd_partition=`echo "$tmp_part" \ |
286 |
- | sed "s%[^a-g]*\([a-g]\)$%\1%"` |
287 |
+ | sed "s%[^a-z]*\([a-z]\)$%\1%"` |
288 |
tmp_drive=`echo "$tmp_drive" \ |
289 |
| sed "s%)%,$tmp_bsd_partition)%"` |
290 |
fi |
291 |
|
292 |
|
293 |
|
294 |
1.1 src/patchsets/grub/0.97/720_all_grub-0.97-grub-install_aoe_support.patch |
295 |
|
296 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/720_all_grub-0.97-grub-install_aoe_support.patch?rev=1.1&view=markup |
297 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/720_all_grub-0.97-grub-install_aoe_support.patch?rev=1.1&content-type=text/plain |
298 |
|
299 |
Index: 720_all_grub-0.97-grub-install_aoe_support.patch |
300 |
=================================================================== |
301 |
Debian-Patch: grub-install_aoe_support.diff |
302 |
diff -Nur grub-0.97-orig/util/grub-install.in grub-0.97/util/grub-install.in |
303 |
--- grub-0.97-orig/util/grub-install.in 2006-07-10 17:39:19.000000000 -0300 |
304 |
+++ grub-0.97/util/grub-install.in 2006-07-10 17:28:51.000000000 -0300 |
305 |
@@ -148,13 +148,16 @@ |
306 |
-e 's%\(d[0-9]*\)p[0-9]*$%\1%' \ |
307 |
-e 's%\(fd[0-9]*\)$%\1%' \ |
308 |
-e 's%/part[0-9]*$%/disc%' \ |
309 |
- -e 's%\(c[0-7]d[0-9]*\).*$%\1%'` |
310 |
+ -e 's%\(c[0-7]d[0-9]*\).*$%\1%' \ |
311 |
+ -e 's%\(e[0-9]\.[0-9]*\).*$%\1%'` |
312 |
tmp_part=`echo "$1" | sed -e 's%.*/[sh]d[a-z]\([0-9]*\)$%\1%' \ |
313 |
-e 's%.*d[0-9]*p%%' \ |
314 |
-e 's%.*/fd[0-9]*$%%' \ |
315 |
-e 's%.*/floppy/[0-9]*$%%' \ |
316 |
-e 's%.*/\(disc\|part\([0-9]*\)\)$%\2%' \ |
317 |
- -e 's%.*c[0-7]d[0-9]*p%%'` |
318 |
+ -e 's%.*c[0-7]d[0-9]*p*%%' \ |
319 |
+ -e 's%.*e[0-9]\.[0-9]*p%%' \ |
320 |
+ -e 's%.*e[0-9]\.[0-9]*\$%%'` |
321 |
;; |
322 |
gnu*) |
323 |
tmp_disk=`echo "$1" | sed 's%\([sh]d[0-9]*\).*%\1%'` |
324 |
|
325 |
|
326 |
|
327 |
1.1 src/patchsets/grub/0.97/800_all_grub-0.97-crossreference_manpages.patch |
328 |
|
329 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/800_all_grub-0.97-crossreference_manpages.patch?rev=1.1&view=markup |
330 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/800_all_grub-0.97-crossreference_manpages.patch?rev=1.1&content-type=text/plain |
331 |
|
332 |
Index: 800_all_grub-0.97-crossreference_manpages.patch |
333 |
=================================================================== |
334 |
Debian-Patch: crossreference_manpages.diff |
335 |
Index: current/docs/help2man |
336 |
=================================================================== |
337 |
--- current/docs/help2man (revision 414) |
338 |
+++ current/docs/help2man (working copy) |
339 |
@@ -455,7 +455,9 @@ |
340 |
$include{$sect} .= <<EOT; |
341 |
The full documentation for |
342 |
.B $program |
343 |
-is maintained as a Texinfo manual. If the |
344 |
+is maintained as a Texinfo manual in the |
345 |
+.B grub-doc |
346 |
+package. If the |
347 |
.B info |
348 |
and |
349 |
.B $program |
350 |
Index: current/docs/Makefile.am |
351 |
=================================================================== |
352 |
--- current/docs/Makefile.am (revision 414) |
353 |
+++ current/docs/Makefile.am (working copy) |
354 |
@@ -37,14 +37,14 @@ |
355 |
$(SHELL) $(srcdir)/$(SRC2TEXI) $(srcdir) $< $@ |
356 |
|
357 |
if MAINTAINER_MODE |
358 |
-$(srcdir)/grub.8: ../grub/grub $(srcdir)/$(HELP2MAN) |
359 |
+$(srcdir)/grub.8: ../grub/grub $(srcdir)/$(HELP2MAN) $(srcdir)/grub.8.additions |
360 |
$(PERL) $(srcdir)/$(HELP2MAN) --name="the grub shell" \ |
361 |
- --section=8 --output=$@ $< |
362 |
+ --section=8 --include=$@.additions --output=$@ $< |
363 |
|
364 |
-$(srcdir)/grub-install.8: ../util/grub-install $(srcdir)/$(HELP2MAN) |
365 |
+$(srcdir)/grub-install.8: ../util/grub-install $(srcdir)/$(HELP2MAN) $(srcdir)/grub-install.8.additions |
366 |
chmod 755 $< |
367 |
$(PERL) $(srcdir)/$(HELP2MAN) --name="install GRUB on your drive" \ |
368 |
- --section=8 --output=$@ $< |
369 |
+ --section=8 --include=$@.additions --output=$@ $< |
370 |
|
371 |
$(srcdir)/mbchk.1: ../util/mbchk $(srcdir)/$(HELP2MAN) |
372 |
$(PERL) $(srcdir)/$(HELP2MAN) \ |
373 |
Index: current/docs/grub.8.additions |
374 |
=================================================================== |
375 |
--- current/docs/grub.8.additions (revision 0) |
376 |
+++ current/docs/grub.8.additions (revision 0) |
377 |
@@ -0,0 +1,3 @@ |
378 |
+[SEE ALSO] |
379 |
+.BR update-grub (8), |
380 |
+.BR grub-install (8). |
381 |
Index: current/docs/grub-install.8.additions |
382 |
=================================================================== |
383 |
--- current/docs/grub-install.8.additions (revision 0) |
384 |
+++ current/docs/grub-install.8.additions (revision 0) |
385 |
@@ -0,0 +1,3 @@ |
386 |
+[SEE ALSO] |
387 |
+.BR grub (8), |
388 |
+.BR update-grub (8). |
389 |
|
390 |
|
391 |
|
392 |
1.1 src/patchsets/grub/0.97/810_all_grub-0.97-ext3_256byte_inode.patch |
393 |
|
394 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/810_all_grub-0.97-ext3_256byte_inode.patch?rev=1.1&view=markup |
395 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/810_all_grub-0.97-ext3_256byte_inode.patch?rev=1.1&content-type=text/plain |
396 |
|
397 |
Index: 810_all_grub-0.97-ext3_256byte_inode.patch |
398 |
=================================================================== |
399 |
Debian-Patch: ext3_256byte_inode.diff |
400 |
|
401 |
Patch from Red Hat. See #463236, #463123. |
402 |
|
403 |
diff -Nrup a/stage2/fsys_ext2fs.c b/stage2/fsys_ext2fs.c |
404 |
--- a/stage2/fsys_ext2fs.c 2004-08-08 20:19:18.000000000 +0200 |
405 |
+++ b/stage2/fsys_ext2fs.c 2008-01-30 14:27:20.000000000 +0100 |
406 |
@@ -79,7 +79,52 @@ struct ext2_super_block |
407 |
__u32 s_rev_level; /* Revision level */ |
408 |
__u16 s_def_resuid; /* Default uid for reserved blocks */ |
409 |
__u16 s_def_resgid; /* Default gid for reserved blocks */ |
410 |
- __u32 s_reserved[235]; /* Padding to the end of the block */ |
411 |
+ /* |
412 |
+ * These fields are for EXT2_DYNAMIC_REV superblocks only. |
413 |
+ * |
414 |
+ * Note: the difference between the compatible feature set and |
415 |
+ * the incompatible feature set is that if there is a bit set |
416 |
+ * in the incompatible feature set that the kernel doesn't |
417 |
+ * know about, it should refuse to mount the filesystem. |
418 |
+ * |
419 |
+ * e2fsck's requirements are more strict; if it doesn't know |
420 |
+ * about a feature in either the compatible or incompatible |
421 |
+ * feature set, it must abort and not try to meddle with |
422 |
+ * things it doesn't understand... |
423 |
+ */ |
424 |
+ __u32 s_first_ino; /* First non-reserved inode */ |
425 |
+ __u16 s_inode_size; /* size of inode structure */ |
426 |
+ __u16 s_block_group_nr; /* block group # of this superblock */ |
427 |
+ __u32 s_feature_compat; /* compatible feature set */ |
428 |
+ __u32 s_feature_incompat; /* incompatible feature set */ |
429 |
+ __u32 s_feature_ro_compat; /* readonly-compatible feature set */ |
430 |
+ __u8 s_uuid[16]; /* 128-bit uuid for volume */ |
431 |
+ char s_volume_name[16]; /* volume name */ |
432 |
+ char s_last_mounted[64]; /* directory where last mounted */ |
433 |
+ __u32 s_algorithm_usage_bitmap; /* For compression */ |
434 |
+ /* |
435 |
+ * Performance hints. Directory preallocation should only |
436 |
+ * happen if the EXT2_FEATURE_COMPAT_DIR_PREALLOC flag is on. |
437 |
+ */ |
438 |
+ __u8 s_prealloc_blocks; /* Nr of blocks to try to preallocate*/ |
439 |
+ __u8 s_prealloc_dir_blocks; /* Nr to preallocate for dirs */ |
440 |
+ __u16 s_reserved_gdt_blocks;/* Per group table for online growth */ |
441 |
+ /* |
442 |
+ * Journaling support valid if EXT2_FEATURE_COMPAT_HAS_JOURNAL set. |
443 |
+ */ |
444 |
+ __u8 s_journal_uuid[16]; /* uuid of journal superblock */ |
445 |
+ __u32 s_journal_inum; /* inode number of journal file */ |
446 |
+ __u32 s_journal_dev; /* device number of journal file */ |
447 |
+ __u32 s_last_orphan; /* start of list of inodes to delete */ |
448 |
+ __u32 s_hash_seed[4]; /* HTREE hash seed */ |
449 |
+ __u8 s_def_hash_version; /* Default hash version to use */ |
450 |
+ __u8 s_jnl_backup_type; /* Default type of journal backup */ |
451 |
+ __u16 s_reserved_word_pad; |
452 |
+ __u32 s_default_mount_opts; |
453 |
+ __u32 s_first_meta_bg; /* First metablock group */ |
454 |
+ __u32 s_mkfs_time; /* When the filesystem was created */ |
455 |
+ __u32 s_jnl_blocks[17]; /* Backup of the journal inode */ |
456 |
+ __u32 s_reserved[172]; /* Padding to the end of the block */ |
457 |
}; |
458 |
|
459 |
struct ext2_group_desc |
460 |
@@ -218,6 +263,9 @@ struct ext2_dir_entry |
461 |
#define EXT2_ADDR_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (__u32)) |
462 |
#define EXT2_ADDR_PER_BLOCK_BITS(s) (log2(EXT2_ADDR_PER_BLOCK(s))) |
463 |
|
464 |
+#define EXT2_INODE_SIZE(s) (SUPERBLOCK->s_inode_size) |
465 |
+#define EXT2_INODES_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s)/EXT2_INODE_SIZE(s)) |
466 |
+ |
467 |
/* linux/ext2_fs.h */ |
468 |
#define EXT2_BLOCK_SIZE_BITS(s) ((s)->s_log_block_size + 10) |
469 |
/* kind of from ext2/super.c */ |
470 |
@@ -553,7 +601,7 @@ ext2fs_dir (char *dirname) |
471 |
gdp = GROUP_DESC; |
472 |
ino_blk = gdp[desc].bg_inode_table + |
473 |
(((current_ino - 1) % (SUPERBLOCK->s_inodes_per_group)) |
474 |
- >> log2 (EXT2_BLOCK_SIZE (SUPERBLOCK) / sizeof (struct ext2_inode))); |
475 |
+ >> log2 (EXT2_INODES_PER_BLOCK (SUPERBLOCK))); |
476 |
#ifdef E2DEBUG |
477 |
printf ("inode table fsblock=%d\n", ino_blk); |
478 |
#endif /* E2DEBUG */ |
479 |
@@ -565,13 +613,12 @@ ext2fs_dir (char *dirname) |
480 |
/* reset indirect blocks! */ |
481 |
mapblock2 = mapblock1 = -1; |
482 |
|
483 |
- raw_inode = INODE + |
484 |
- ((current_ino - 1) |
485 |
- & (EXT2_BLOCK_SIZE (SUPERBLOCK) / sizeof (struct ext2_inode) - 1)); |
486 |
+ raw_inode = (struct ext2_inode *)((char *)INODE + |
487 |
+ ((current_ino - 1) & (EXT2_INODES_PER_BLOCK (SUPERBLOCK) - 1)) * |
488 |
+ EXT2_INODE_SIZE (SUPERBLOCK)); |
489 |
#ifdef E2DEBUG |
490 |
printf ("ipb=%d, sizeof(inode)=%d\n", |
491 |
- (EXT2_BLOCK_SIZE (SUPERBLOCK) / sizeof (struct ext2_inode)), |
492 |
- sizeof (struct ext2_inode)); |
493 |
+ EXT2_INODES_PER_BLOCK (SUPERBLOCK), EXT2_INODE_SIZE (SUPERBLOCK)); |
494 |
printf ("inode=%x, raw_inode=%x\n", INODE, raw_inode); |
495 |
printf ("offset into inode table block=%d\n", (int) raw_inode - (int) INODE); |
496 |
for (i = (unsigned char *) INODE; i <= (unsigned char *) raw_inode; |
497 |
|
498 |
|
499 |
|
500 |
1.1 src/patchsets/grub/0.97/README-DEBIAN-PATCHES |
501 |
|
502 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/README-DEBIAN-PATCHES?rev=1.1&view=markup |
503 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/grub/0.97/README-DEBIAN-PATCHES?rev=1.1&content-type=text/plain |
504 |
|
505 |
Index: README-DEBIAN-PATCHES |
506 |
=================================================================== |
507 |
Several of the patches here have been borrowed from the Debian patchset. |
508 |
At the time of writing, Debian Patchset 0.97-31 was the most recent. |
509 |
Signed-off-by: Robin H. Johnson <robbat2@g.o> |
510 |
Date: Tue, 25 Mar 2008 00:50:32 +0000 |
511 |
|
512 |
Included prior to Gentoo 0.97-r5: |
513 |
--------------------------------- |
514 |
2gb_limit.diff |
515 |
geometry-26kernel.patch |
516 |
grub-special_device_names.diff |
517 |
initrd_max_address.diff |
518 |
intelmac.diff |
519 |
mprotect.diff (older version) |
520 |
|
521 |
Included as of Gentoo 0.97-r5: |
522 |
------------------------------ |
523 |
crossreference_manpages.diff |
524 |
ext3_256byte_inode.diff |
525 |
grub-install_addsyncs.diff |
526 |
grub-install_aoe_support.diff |
527 |
grub-install_regexp.diff |
528 |
|
529 |
Not suitable for inclusion: |
530 |
--------------------------- |
531 |
find-grub-dir.diff |
532 |
fix_amd64_compile.diff |
533 |
graphics.diff |
534 |
|
535 |
Potential for future inclusion: |
536 |
------------------------------- |
537 |
cvs-sync.patch |
538 |
kfreebsd.diff |
539 |
menu.lst_gnu-hurd.diff |
540 |
print_func.diff |
541 |
raid_cciss.diff |
542 |
raid.diff |
543 |
savedefault.diff |
544 |
splashimage_help.diff |
545 |
xfs_freeze.diff |
546 |
|
547 |
|
548 |
|
549 |
-- |
550 |
gentoo-commits@l.g.o mailing list |