URL: <http://savannah.gnu.org/bugs/?39306>
Summary: Contrib: grub-list-kernels.pl script Project: GNU GRUB Submitted by: csanders Submitted on: Fri 21 Jun 2013 01:03:15 AM GMT Category: None Severity: Major Priority: 5 - Normal Item Group: Feature Request Status: None Privacy: Public Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: Release: other Reproducibility: None Planned Release: None _______________________________________________________ Details: Script to list menu entries in grub.cfg, with indexes suitable for use with grub-set-default and grub-reboot (e.g. _grub-set-default '1>0'_). Includes support for grub submenus. If required, I'm happy to assign copyright to FSF. for more info, see [http://blog.taz.net.au/2013/06/20/grub-list-kernels-pl/] Example output: # grub-list-kernels.pl 0 Debian GNU/Linux 1 Advanced options for Debian GNU/Linux 1>0 Debian GNU/Linux, with Linux 3.9-1-amd64 1>1 Debian GNU/Linux, with Linux 3.9-1-amd64 (recovery mode) 1>2 Debian GNU/Linux, with Linux 3.8-2-amd64 1>3 Debian GNU/Linux, with Linux 3.8-2-amd64 (recovery mode) 1>4 Debian GNU/Linux, with Linux 3.8-1-amd64 1>5 Debian GNU/Linux, with Linux 3.8-1-amd64 (recovery mode) 1>6 Debian GNU/Linux, with Linux 3.7-trunk-amd64 1>7 Debian GNU/Linux, with Linux 3.7-trunk-amd64 (recovery mode) 1>8 Debian GNU/Linux, with Linux 3.2.0-4-amd64 1>9 Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode) 2 Network boot (iPXE) 3 Bootable floppy: LSI 4 Bootable floppy: freedos-bare Default: 0 "Debian GNU/Linux" _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Fri 21 Jun 2013 01:03:15 AM GMT Name: grub-list-kernels.pl Size: 3kB By: csanders <http://savannah.gnu.org/bugs/download.php?file_id=28371> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?39306> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-grub mailing list Bug-grub@gnu.org https://lists.gnu.org/mailman/listinfo/bug-grub