]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/SuSE10.2/stage2-wildcard-doc.diff
Hinzugefuegt:
[people/teissler/ipfire-2.x.git] / src / patches / SuSE10.2 / stage2-wildcard-doc.diff
1 Index: grub-0.95/docs/grub.texi
2 ===================================================================
3 --- grub-0.95.orig/docs/grub.texi
4 +++ grub-0.95/docs/grub.texi
5 @@ -1933,6 +1933,7 @@ These commands can only be used in the m
6 * gfxmenu:: Use graphical menu interface
7 * timeout:: Set the timeout
8 * title:: Start a menu entry
9 +* wildcard:: Define a wildcard boot entry
10 @end menu
11
12
13 @@ -2001,6 +2002,42 @@ the line, starting with the first non-sp
14 @end deffn
15
16
17 +@node wildcard
18 +@subsection wildcard
19 +
20 +@deffn Command wildcard pathname
21 +Treat this boot entry as a wildcard entry: The
22 +wildcard, title, kernel, and initrd commands (see @ref{Menu-specific
23 +commands} and @ref{Command-line and menu entry commands}) each have an
24 +asterisk (*) in their value. A filename match is performed on the
25 +@var{pathname} of the wildcard command. For each match, the entire boot
26 +entry is duplicated. The part of the filename whcih matches the asterisk
27 +in the wildcard command replaces the asterisks in the title, kernel, and
28 +initrd commands. For example, with the files vmlinuz-2.6.5-1 and
29 +vmlinuz-2.6.8-8 below (hd0,7)/boot, the following entry in the stage 2
30 +configuration file:
31 +
32 +@example
33 +title Linux-*
34 + wildcard (hd0,7)/boot/vmlinuz-*
35 + kernel (hd0,7)/boot/vmlinuz-* root=/dev/hda8
36 + initrd (hd0,7)/boot/initrd-*
37 +@end example
38 +
39 +would expand as follows:
40 +
41 +@example
42 +title Linux-2.6.5-1
43 + wildcard (hd0,7)/boot/vmlinuz-2.6.5-1
44 + kernel (hd0,7)/boot/vmlinuz-2.6.5-1 root=/dev/hda8
45 + initrd (hd0,7)/boot/initrd-2.6.5-1
46 +title Linux-2.6.8-8
47 + wildcard (hd0,7)/boot/vmlinuz-2.6.8-8
48 + kernel (hd0,7)/boot/vmlinuz-2.6.8-8 root=/dev/hda8
49 + initrd (hd0,7)/boot/initrd-2.6.8-8
50 +@end example
51 +@end deffn
52 +
53 @node General commands
54 @section The list of general commands
55