Manpages update-grubSection: Maintenance Commands (8)Updated: June 18, 2001 Index Return to Main Contents NAMEupdate-grub - program to generate GRUB's menu.lst fileSYNOPSISupdate-grubDESCRIPTIONupdate-grub is a program used to generate the menu.lst file used by the grub bootloader. It works by looking in /boot for all files which start with "vmlinuz-". They will be treated as kernels, and grub menu entries will be created for each. It will also create the initial menu.lst if none exists, after prompting the user. It will also add initrd lines for ramdisk images found with the same version as kernels found. e.g. /boot/vmlinuz-2.4.5 and /boot/initrd-2.4.5 will cause a line of "initrd=/boot/initrd-2.4.5 or simliar to be added for the kernel entry in the menu.lst.After update-grub has been run for the first time, the user is required to edit the generated menu.lst. The user must set the two options update-grub uses. Then re-run the update-grub script to update the menu.lst file using the default's that have been set.
These are the options passed to the linux kernel:
This is the grub device from which grub loads the kernel:
This option controls if grub should create the alternative boot options in the menu entries
This option controls if grub should lock the alternative boot options see grub(8) for more information.
This options controls what is used for the alternative boot options, multiple altoptions lines are allowed.
The update-grub script can be ran automagically from the /etc/kernel-img.conf file by adding the following lines:
postinst_hook = /sbin/update-grub
For further information related to /etc/kernel-img.conf, see the manpage kernel-img.conf(5). SEE ALSOgrub(8), grub-install(8), kernel-img.conf(5), bootparam(7).The full documentation for grub is maintained as a Texinfo manual in the grub-doc package. If the info and grub programs are properly installed at your site, the command
should give you access to the complete manual. AUTHORThis manual page was written by Jason Thomas <jason@debian.org>, for the Debian GNU/Linux system (but may be used by others).
IndexThis document was created by man2html, using the manual pages. Time: 22:46:52 GMT, May 17, 2025 |