< Day Day Up > |
Recipe 12.10. Customizing menu.lst12.10.1 ProblemYou want to change the look of the GRUB menu, and customize options such as timeouts and default boot entries. 12.10.2 SolutionMake your customizations in /boot/grub/menu.lst. (Some systems use grub.conf.) There are two sections: the global settings and the boot stanzas. Colors, timeouts, and default boot entries are defined in the global section. This is a complete sample menu.lst, including global configuration options: ##GRUB configuration for windbag, created 10-22-2003 ## global settings ## default num default 0 ## timeout sec timeout 5 # Pretty colors color cyan/blue white/blue # Display a splash screen splashimage (hd0,0)/boot/splash.xpm.gz foreground bbbbbb background 000000 ### Boot menu ## default title Libranet GNU/Linux, kernel 2.4.21 root (hd0,0) kernel /boot/vmlinuz-2.4.21 root=/dev/hda1 ro hdb=scsi hdc=scsi ## new 2.6 test kernel title Libranet GNU/Linux, kernel 2.6.3-test1 root (hd0,0) kernel /boot/bzImage-2.6.3-test1 root=/dev/hda1 ro ## Stock Red Hat 9 title Red Hat 9 root (hd0,4) kernel /boot/vmlinuz-2.4.22-1 root=/dev/hda5 ro initrd /boot/initrd-2.4.22-1.img 12.10.3 DiscussionThese are definitions for the global configuration options:
Another default choice is default saved. When you use default saved, you must also add savedefault to the boot stanzas, like this: title Libranet GNU/Linux, kernel 2.4.21 root (hd0,0) kernel /boot/vmlinuz-2.4.21 ro root=/dev/hda1 savedefault This makes the last item booted the default for the next boot. Many distributions configure the boot stanzas to include savedefault, but they don't add default saved, so it doesn't work. 12.10.4 See Also
|
< Day Day Up > |