File: README.grub

package info (click to toggle)
kernel-package 7.107
  • links: PTS
  • area: main
  • in suites: woody
  • size: 960 kB
  • ctags: 432
  • sloc: perl: 2,818; makefile: 1,574; sh: 231
file content (58 lines) | stat: -rw-r--r-- 1,837 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
		   Andras BALI <drewie@bigfoot.com>

The scripts included in kernel-package (postinst script for adding the
new kernel to the menu, postrm script to remove it from the menu and a
config file) handle symlinks properly so the default menu entry can
launch the last installed kernel. This scripts are based on
kernel_grub_conf.sh by Junichi Uekawa <dancer@debian.org> and work
perfect on my system with the following kernel-package configuration:

,----
| $ cat /etc/kernel-img.conf
| image_in_boot = yes
| do_symlinks = yes
| no_symlinks = no
| relative_links = yes
| reverse_symlink = no
| do_boot_enable =  yes
| do_bootfloppy = no
| do_bootloader = no
|
| postinst_hook = /usr/local/sbin/kernel_grub_conf.sh
| postrm_hook = /usr/local/sbin/kernel_grub_rm.sh
`----

,----
| $ ls -l /boot
| /boot:
| total 1105
| drwxr-xr-x    4 root     root         1024 Jul  4 18:14 .
| drwxr-xr-x   18 root     root         1024 Jun 12 13:23 ..
| -rw-r--r--    1 root     root       396184 Jun  9 20:11 System.map-2.4.5-ac12-ipt-int
| -rw-r--r--    1 root     root        15336 Jun  9 19:03 config-2.4.5-ac12-ipt-int
| drwxr-xr-x    2 root     root         1024 Jul  4 18:14 grub
| drwxr-xr-x    2 root     root        12288 May 26 20:36 lost+found
| lrwxrwxrwx    1 root     root           26 Jun  9 20:14 vmlinuz -> vmlinuz-2.4.5-ac12-ipt-int
| -rw-r--r--    1 root     root       681505 Jun  9 20:11 vmlinuz-2.4.5-ac12-ipt-int
`----

,----
| $ cat /boot/grub/menu.lst
| timeout 5
| default 0
|
| title linux [default]
| root (hd0,3)
| kernel /vmlinuz root=/dev/hda2 devfs=mount
|
| title pcdos
| rootnoverify (hd0,0)
| makeactive
| chainloader +1
|
| #Autogenerated by kernel-image 2.4.5-ac12-ipt-int
| title linux 2.4.5-ac12-ipt-int
| root (hd0,3)
| kernel /vmlinuz-2.4.5-ac12-ipt-int root=/dev/hda2
| #End kernel-image 2.4.5-ac12-ipt-int
`----