version 2, including all changes.
.
Rev |
Author |
# |
Line |
1 |
IanMcDonald |
1 |
<verbatim> |
|
|
2 |
NAME |
|
|
3 |
update-grub - program to generate GRUB's menu.lst file |
|
|
4 |
|
|
|
5 |
SYNOPSIS |
|
|
6 |
update-grub [-y] |
|
|
7 |
|
|
|
8 |
OPTIONS |
|
|
9 |
-y Assume 'yes' on all questions. |
|
|
10 |
|
|
|
11 |
DESCRIPTION |
|
|
12 |
update-grub is a program used to generate the menu.lst file used by the |
|
|
13 |
grub bootloader. It works by looking in /boot for all files which |
|
|
14 |
start with "vmlinuz-". They will be treated as kernels, and grub menu |
|
|
15 |
entries will be created for each. It will also create the initial |
|
|
16 |
menu.lst if none exists, after prompting the user. It will also add |
|
|
17 |
initrd lines for ramdisk images found with the same version as kernels |
|
|
18 |
found. e.g. /boot/vmlinuz-2.4.5 and /boot/initrd-2.4.5 will cause a |
|
|
19 |
line of "initrd=/boot/initrd-2.4.5 or similar to be added for the ker- |
|
|
20 |
nel entry in the menu.lst. |
|
|
21 |
|
|
|
22 |
After update-grub has been run for the first time, the user is required |
|
|
23 |
to edit the generated menu.lst. The user must set the two options |
|
|
24 |
update-grub uses. Then re-run the update-grub script to update the |
|
|
25 |
menu.lst file using the default's that have been set. |
|
|
26 |
|
2 |
IanMcDonald |
27 |
</verbatim> |
|
|
28 |
<pre> |
1 |
IanMcDonald |
29 |
These are the options passed to the linux kernel: |
|
|
30 |
# kopt=root=/dev/hda1 ro |
|
|
31 |
Everything after "kopt=" is passed to the kernel as parameters. See |
2 |
IanMcDonald |
32 |
[bootparam(7)] for more information. |
1 |
IanMcDonald |
33 |
|
|
|
34 |
This is the grub device from which grub loads the kernel: |
|
|
35 |
# groot=(hd0,1) |
|
|
36 |
(hd0,1) is a partition in grub notation. See grub(8) for more informa- |
|
|
37 |
tion. |
|
|
38 |
|
|
|
39 |
This option controls if grub should create the alternative boot options |
|
|
40 |
in the menu entries |
|
|
41 |
# alternative=true |
|
|
42 |
# alternative=false |
|
|
43 |
|
|
|
44 |
This option controls if grub should lock the alternative boot options |
2 |
IanMcDonald |
45 |
see [grub(8)] for more information. |
1 |
IanMcDonald |
46 |
# lockalternative=true |
|
|
47 |
# lockalternative=false |
|
|
48 |
|
|
|
49 |
This option controls if grub should lock the old kernels. |
|
|
50 |
# lockold=true |
|
|
51 |
# lockold=false |
|
|
52 |
|
|
|
53 |
This options controls what is used for the alternative boot options, |
|
|
54 |
multiple altoptions lines are allowed. |
|
|
55 |
# altoptions=(some description) some kernel command line options |
|
|
56 |
# altoptions=(recovery option) single |
|
|
57 |
The description is placed in '()' and the kernel command line options |
|
|
58 |
follow that. |
|
|
59 |
# updatedefault=true # updatedefault=false |
|
|
60 |
|
|
|
61 |
This option controls if grub should update the default entry to keep |
|
|
62 |
booting the same kernel even if a new one is installed. |
|
|
63 |
|
|
|
64 |
|
|
|
65 |
The update-grub script can be ran automagically from the |
|
|
66 |
/etc/kernel-img.conf file by adding the following lines: |
|
|
67 |
|
|
|
68 |
postinst_hook = update-grub |
|
|
69 |
postrm_hook = update-grub |
|
|
70 |
do_bootloader = no |
|
|
71 |
|
|
|
72 |
For further information related to /etc/kernel-img.conf, see the man- |
2 |
IanMcDonald |
73 |
page [kernel-img.conf(5)]. |
1 |
IanMcDonald |
74 |
|
|
|
75 |
SEE ALSO |
2 |
IanMcDonald |
76 |
[grub(8)], [grub-install(8)], [kernel-img.conf(5)] (contained in the kernel- |
|
|
77 |
package package), [bootparam(7)]. |
1 |
IanMcDonald |
78 |
|
|
|
79 |
The full documentation for grub is maintained as a Texinfo manual in |
|
|
80 |
the grub-doc package. If the info and grub programs are properly |
|
|
81 |
installed at your site, the command |
|
|
82 |
|
|
|
83 |
info grub |
|
|
84 |
|
|
|
85 |
should give you access to the complete manual. |
|
|
86 |
|
|
|
87 |
AUTHOR |
|
|
88 |
This manual page was written by Jason Thomas <jason@debian.org>, for |
|
|
89 |
the Debian GNU/Linux system (but may be used by others). |
2 |
IanMcDonald |
90 |
</pre> |