aboutsummaryrefslogtreecommitdiff
path: root/projects/grub/install/txtmode/grub.cfg
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-07-30 03:52:03 -0400
committerAndrew Robbins <contact@andrewrobbins.info>2017-07-31 04:51:29 -0400
commit6d0cb7a80b6c564e272e770783897772e5aeb8b8 (patch)
tree17b7b7255c398d53fb78ce72942cdd92d56c24cb /projects/grub/install/txtmode/grub.cfg
parent16aeb473f44dea2b1a32a337f2603ad3f3146079 (diff)
downloadlibrebootfr-6d0cb7a80b6c564e272e770783897772e5aeb8b8.tar.gz
librebootfr-6d0cb7a80b6c564e272e770783897772e5aeb8b8.zip
Make minor formatting changes to GRUB config files
Diffstat (limited to 'projects/grub/install/txtmode/grub.cfg')
-rw-r--r--projects/grub/install/txtmode/grub.cfg12
1 files changed, 12 insertions, 0 deletions
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