aboutsummaryrefslogtreecommitdiff
path: root/projects/grub/install
diff options
context:
space:
mode:
Diffstat (limited to 'projects/grub/install')
-rw-r--r--projects/grub/install/corebootfb/AUTHORS (renamed from projects/grub/install/vesafb/AUTHORS)0
-rw-r--r--projects/grub/install/corebootfb/COPYING (renamed from projects/grub/install/vesafb/COPYING)0
-rw-r--r--projects/grub/install/corebootfb/grub.cfg (renamed from projects/grub/install/vesafb/grub.cfg)19
-rw-r--r--projects/grub/install/corebootfb/grubtest.cfg (renamed from projects/grub/install/vesafb/grubtest.cfg)19
-rw-r--r--projects/grub/install/grubenv16
-rw-r--r--projects/grub/install/install5
-rw-r--r--projects/grub/install/txtmode/grub.cfg14
-rw-r--r--projects/grub/install/txtmode/grubtest.cfg14
8 files changed, 43 insertions, 44 deletions
diff --git a/projects/grub/install/vesafb/AUTHORS b/projects/grub/install/corebootfb/AUTHORS
index 0157cfed..0157cfed 100644
--- a/projects/grub/install/vesafb/AUTHORS
+++ b/projects/grub/install/corebootfb/AUTHORS
diff --git a/projects/grub/install/vesafb/COPYING b/projects/grub/install/corebootfb/COPYING
index 3b78313b..3b78313b 100644
--- a/projects/grub/install/vesafb/COPYING
+++ b/projects/grub/install/corebootfb/COPYING
diff --git a/projects/grub/install/vesafb/grub.cfg b/projects/grub/install/corebootfb/grub.cfg
index e057e88b..f61e2684 100644
--- a/projects/grub/install/vesafb/grub.cfg
+++ b/projects/grub/install/corebootfb/grub.cfg
@@ -1,5 +1,3 @@
-set prefix=(memdisk)/boot/grub
-
insmod nativedisk
insmod ehci
insmod ohci
@@ -17,20 +15,17 @@ terminal_input --append serial
terminal_output --append serial
terminal_input --append at_keyboard
terminal_output --append cbmemc
-
-gfxpayload=keep
terminal_output --append gfxterm
-# Prettify GRUB
-background_image (cbfsdisk)/background.png
-loadfont (cbfsdisk)/dejavusansmono.pf2
+load_env --file (cbfsdisk)/grubenv
-# Default to first option, automatically boot after 1 second
-set default="0"
-set timeout=1
+# User's preferred keyboard layout
+if [ -n "${keymap}" ]; then
+ keymap "${keymap}"
+fi
-# This is useful when using 'cat' on long files on GRUB terminal
-set pager=1
+# Prettify GRUB
+background_image "${gfxterm_background}"
function try_user_config {
set root="${1}"
diff --git a/projects/grub/install/vesafb/grubtest.cfg b/projects/grub/install/corebootfb/grubtest.cfg
index d0e0b46e..50beb915 100644
--- a/projects/grub/install/vesafb/grubtest.cfg
+++ b/projects/grub/install/corebootfb/grubtest.cfg
@@ -1,5 +1,3 @@
-set prefix=(memdisk)/boot/grub
-
insmod nativedisk
insmod ehci
insmod ohci
@@ -17,20 +15,17 @@ terminal_input --append serial
terminal_output --append serial
terminal_input --append at_keyboard
terminal_output --append cbmemc
-
-gfxpayload=keep
terminal_output --append gfxterm
-# Prettify GRUB
-background_image (cbfsdisk)/background.png
-loadfont (memdisk)/dejavusansmono.pf2
+load_env --file (cbfsdisk)/grubenv
-# Default to first option, automatically boot after 1 second
-set default="0"
-set timeout=1
+# User's preferred keyboard layout
+if [ -n "${keymap}" ]; then
+ keymap "${keymap}"
+fi
-# This is useful when using 'cat' on long files on GRUB terminal
-set pager=1
+# Prettify GRUB
+background_image "${gfxterm_background}"
function try_user_config {
set root="${1}"
diff --git a/projects/grub/install/grubenv b/projects/grub/install/grubenv
new file mode 100644
index 00000000..66f7b1c6
--- /dev/null
+++ b/projects/grub/install/grubenv
@@ -0,0 +1,16 @@
+# GRUB Environment Block
+color_highlight=black/white
+color_normal=white/black
+default=0
+gfxpayload=keep
+gfxterm_background=(cbfsdisk)/background.png
+gfxterm_font=(cbfsdisk)/fonts/dejavusansmono.pf2
+keymap=(cbfsdisk)/keymaps/default.gkb
+lang=
+locale_dir=(cbfsdisk)/locale
+menu_color_highlight=black/white
+menu_color_normal=white/black
+pager=1
+timeout=1
+timeout_style=menu
+############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################# \ No newline at end of file
diff --git a/projects/grub/install/install b/projects/grub/install/install
index c396a32d..3ebca5a2 100644
--- a/projects/grub/install/install
+++ b/projects/grub/install/install
@@ -1,4 +1,5 @@
+grubenv:grubenv
txtmode/grub.cfg:txtmode/grub.cfg
txtmode/grubtest.cfg:txtmode/grubtest.cfg
-vesafb/grub.cfg:vesafb/grub.cfg
-vesafb/grubtest.cfg:vesafb/grubtest.cfg
+corebootfb/grub.cfg:corebootfb/grub.cfg
+corebootfb/grubtest.cfg:corebootfb/grubtest.cfg
diff --git a/projects/grub/install/txtmode/grub.cfg b/projects/grub/install/txtmode/grub.cfg
index c668544b..90946c01 100644
--- a/projects/grub/install/txtmode/grub.cfg
+++ b/projects/grub/install/txtmode/grub.cfg
@@ -1,5 +1,3 @@
-set prefix=(memdisk)/boot/grub
-
insmod nativedisk
insmod ehci
insmod ohci
@@ -16,16 +14,14 @@ terminal_input --append serial
terminal_output --append serial
terminal_input --append at_keyboard
terminal_output --append cbmemc
-
-gfxpayload=keep
terminal_output --append gfxterm
-# Default to first option, automatically boot after 1 second
-set default="0"
-set timeout=1
+load_env --file (cbfsdisk)/grubenv
-# This is useful when using 'cat' on long files on GRUB terminal
-set pager=1
+# User's preferred keyboard layout
+if [ -n "${keymap}" ]; then
+ keymap "${keymap}"
+fi
function try_user_config {
set root="${1}"
diff --git a/projects/grub/install/txtmode/grubtest.cfg b/projects/grub/install/txtmode/grubtest.cfg
index 6ffeace7..d9ab637d 100644
--- a/projects/grub/install/txtmode/grubtest.cfg
+++ b/projects/grub/install/txtmode/grubtest.cfg
@@ -1,5 +1,3 @@
-set prefix=(memdisk)/boot/grub
-
insmod nativedisk
insmod ehci
insmod ohci
@@ -16,16 +14,14 @@ terminal_input --append serial
terminal_output --append serial
terminal_input --append at_keyboard
terminal_output --append cbmemc
-
-gfxpayload=keep
terminal_output --append gfxterm
-# Default to first option, automatically boot after 1 second
-set default="0"
-set timeout=1
+load_env --file (cbfsdisk)/grubenv
-# This is useful when using 'cat' on long files on GRUB terminal
-set pager=1
+# User's preferred keyboard layout
+if [ -n "${keymap}" ]; then
+ keymap "${keymap}"
+fi
function try_user_config {
set root="${1}"