aboutsummaryrefslogtreecommitdiff
path: root/projects/grub/install/txtmode
diff options
context:
space:
mode:
Diffstat (limited to 'projects/grub/install/txtmode')
-rw-r--r--projects/grub/install/txtmode/grub.cfg12
-rw-r--r--projects/grub/install/txtmode/grubtest.cfg12
2 files changed, 24 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
diff --git a/projects/grub/install/txtmode/grubtest.cfg b/projects/grub/install/txtmode/grubtest.cfg
index c979d4a5..db12a1d8 100644
--- a/projects/grub/install/txtmode/grubtest.cfg
+++ b/projects/grub/install/txtmode/grubtest.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 standard configuration (grub.cfg) inside of CBFS [t]' --hotkey='t' {
set root='(cbfsdisk)'
configfile /grub.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