Usage Guide

No real installation required. Simply unpack the file, copy it to a common location (/usr/local/sbin is a good choice) and have at it.






System Requirements

  • The system must be configured to use the grub2 boot loader.

Example Output


			   [kernel]# grub2-select-kernel -h

			   grub2-select-kernel v0.0.1

			   Usage:  grub2-select-kernel [options]

			   Options:

			    -d     | --debug        This useful messages. 
			                                             (t=trace, 1=options, 2=config)
			    -h            | --help                This useful messages.
			    -la           | --label               Set the default kernel by label. Use quotes.
			    -li           | --list                List available kernels.
			    -n            | --number              Set the default kernel by menu number.
			    -v            | --verbose             Turn additional progess output.
			    -V            | --version             Print version and exit.




			   [kernel]# grub2-select-kernel -li

			   Current kernel: CentOS Linux, with Linux 3.10.0-123.el7.x86_64

			      0 CentOS Linux, with Linux 3.10.0-123.el7.x86_64
			      1 CentOS Linux, with Linux 3.10.0-123.13.2.el7.x86_64
			      2 CentOS Linux, with Linux 3.10.0-123.8.1.el7.x86_64
			      3 CentOS Linux, with Linux 0-rescue-4c905a03568f48e081ba2068af281191
			      4 CentOS Linux GNU/Linux, with tboot 1.7.0 and Linux 3.10.0-123.el7.x86_64
			      5 CentOS Linux GNU/Linux, with tboot 1.7.0 and Linux 3.10.0-123.13.2.el7.x86_64
			      6 CentOS Linux GNU/Linux, with tboot 1.7.0 and Linux 3.10.0-123.8.1.el7.x86_64