aboutsummaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2018-11-27 04:33:54 -0500
committerAndrew Robbins <contact@andrewrobbins.info>2018-11-27 04:36:56 -0500
commitd21f3c0519a7251ab32344afd590b85018d56401 (patch)
tree4b623b11c30b57e585c1d6df0c52befb82046587 /projects
parenta5d2271c474b11967e29238e9ce1bd1a1e171735 (diff)
downloadlibrebootfr-d21f3c0519a7251ab32344afd590b85018d56401.tar.gz
librebootfr-d21f3c0519a7251ab32344afd590b85018d56401.zip
Modify modules to include and load in GRUB images
The cbfs module must be loaded before trying to source grub.cfg from CBFS, for obvious reasons. The test module is bundled into all images in order to avoid the situation where grub gets stuck in a loop trying to locate the module during parsing of grub.cfg. This could happen if a user removes the module or moves it, so it's best to avoid a brick by just bundling it into the image. For the bios target, biosdisk has been removed as it doesn't seem to provide any benefit and memdisk has been added to eliminate an error printed by GRUB upon load.
Diffstat (limited to 'projects')
-rw-r--r--projects/grub/configs/bios/config2
-rw-r--r--projects/grub/configs/bios/modules-minimal3
-rw-r--r--projects/grub/configs/coreboot/config2
-rw-r--r--projects/grub/configs/coreboot/modules-minimal1
-rw-r--r--projects/grub/configs/uefi/config2
-rw-r--r--projects/grub/configs/uefi/modules-minimal1
6 files changed, 10 insertions, 1 deletions
diff --git a/projects/grub/configs/bios/config b/projects/grub/configs/bios/config
index 9e627e2f..c83bd21d 100644
--- a/projects/grub/configs/bios/config
+++ b/projects/grub/configs/bios/config
@@ -1,2 +1,4 @@
+insmod cbfs
+
set root=(cbfsdisk)
source (cbfsdisk)/fallback/grub.cfg
diff --git a/projects/grub/configs/bios/modules-minimal b/projects/grub/configs/bios/modules-minimal
index 706aa529..6cb1d499 100644
--- a/projects/grub/configs/bios/modules-minimal
+++ b/projects/grub/configs/bios/modules-minimal
@@ -1,5 +1,4 @@
ahci
-biosdisk
cbfs
cbmemc
configfile
@@ -7,8 +6,10 @@ ehci
ext2
halt
loadenv
+memdisk
part_bsd
part_gpt
pata
reboot
+test
verify
diff --git a/projects/grub/configs/coreboot/config b/projects/grub/configs/coreboot/config
index e3792e94..0b4a8d4e 100644
--- a/projects/grub/configs/coreboot/config
+++ b/projects/grub/configs/coreboot/config
@@ -1,3 +1,5 @@
+insmod cbfs
+
set prefix=(cbfsdisk)/fallback
set root=(cbfsdisk)
diff --git a/projects/grub/configs/coreboot/modules-minimal b/projects/grub/configs/coreboot/modules-minimal
index 0480a0d0..e2033cb8 100644
--- a/projects/grub/configs/coreboot/modules-minimal
+++ b/projects/grub/configs/coreboot/modules-minimal
@@ -10,5 +10,6 @@ part_bsd
part_gpt
pata
reboot
+test
usbms
verify
diff --git a/projects/grub/configs/uefi/config b/projects/grub/configs/uefi/config
index e3792e94..0b4a8d4e 100644
--- a/projects/grub/configs/uefi/config
+++ b/projects/grub/configs/uefi/config
@@ -1,3 +1,5 @@
+insmod cbfs
+
set prefix=(cbfsdisk)/fallback
set root=(cbfsdisk)
diff --git a/projects/grub/configs/uefi/modules-minimal b/projects/grub/configs/uefi/modules-minimal
index 0480a0d0..e2033cb8 100644
--- a/projects/grub/configs/uefi/modules-minimal
+++ b/projects/grub/configs/uefi/modules-minimal
@@ -10,5 +10,6 @@ part_bsd
part_gpt
pata
reboot
+test
usbms
verify