From 6d0cb7a80b6c564e272e770783897772e5aeb8b8 Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Sun, 30 Jul 2017 03:52:03 -0400 Subject: Make minor formatting changes to GRUB config files --- projects/grub/install/txtmode/grub.cfg | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'projects/grub/install/txtmode/grub.cfg') diff --git a/projects/grub/install/txtmode/grub.cfg b/projects/grub/install/txtmode/grub.cfg index 34d2a09a..329be946 100644 --- a/projects/grub/install/txtmode/grub.cfg +++ b/projects/grub/install/txtmode/grub.cfg @@ -38,6 +38,7 @@ function try_user_config { done done } + function search_grub { for i in 0 1; do # raw devices @@ -48,6 +49,7 @@ function search_grub { done done } + function try_isolinux_config { set root="${1}" for dir in '' /boot; do @@ -58,6 +60,7 @@ function try_isolinux_config { fi done } + function search_isolinux { for i in 0 1; do # raw devices @@ -68,6 +71,7 @@ function search_isolinux { done done } + menuentry 'Load Operating System (incl. fully encrypted disks) [o]' --hotkey='o' { # GRUB2 handles (almost) every possible disk setup, but only the location of # /boot is actually important since GRUB2 only loads the user's config. @@ -134,31 +138,39 @@ menuentry 'Load Operating System (incl. fully encrypted disks) [o]' --hotkey='o fi done } + menuentry 'Search ISOLINUX menu (AHCI) [a]' --hotkey='a' { search_isolinux ahci } + menuentry 'Search ISOLINUX menu (USB) [u]' --hotkey='u' { search_isolinux usb } + menuentry 'Search ISOLINUX menu (CD/DVD) [d]' --hotkey='d' { insmod ata for dev in ata0 ata1 ata2 ata3 ahci1; do try_isolinux_config "(${dev})" done } + menuentry 'Load test configuration (grubtest.cfg) inside of CBFS [t]' --hotkey='t' { set root='(cbfsdisk)' configfile /grubtest.cfg } + menuentry 'Search for GRUB2 configuration on external media [s]' --hotkey='s' { search_grub usb } + menuentry 'Poweroff [p]' --hotkey='p' { halt } + menuentry 'Reboot [r]' --hotkey='r' { reboot } + menuentry 'Load MemTest86+ [m]' --hotkey='m' { set root='memdisk' linux16 /memtest.bin -- cgit v1.2.3-70-g09d2