aboutsummaryrefslogtreecommitdiff
path: root/projects/grub
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2018-12-04 00:55:33 -0500
committerAndrew Robbins <contact@andrewrobbins.info>2018-12-04 00:55:33 -0500
commit5a7042e93474bf37f92e7e4b4da3751ab4b66955 (patch)
treeee62276bcea3ac0f96f7abbe3dc424a910ca3c10 /projects/grub
parent926f39b1581171ed1e5ae7e53e0d5757b3079d32 (diff)
downloadlibrebootfr-5a7042e93474bf37f92e7e4b4da3751ab4b66955.tar.gz
librebootfr-5a7042e93474bf37f92e7e4b4da3751ab4b66955.zip
Remove unnecessary commands from embedded grub.cfg
All modules listed in a given target's modules-minimal file are preloaded so there's no need to specifically load any.
Diffstat (limited to 'projects/grub')
-rw-r--r--projects/grub/configs/bios/config8
-rw-r--r--projects/grub/configs/coreboot/config8
-rw-r--r--projects/grub/configs/uefi/config8
3 files changed, 9 insertions, 15 deletions
diff --git a/projects/grub/configs/bios/config b/projects/grub/configs/bios/config
index 0b4a8d4e..f5d969f9 100644
--- a/projects/grub/configs/bios/config
+++ b/projects/grub/configs/bios/config
@@ -1,6 +1,4 @@
-insmod cbfs
-
-set prefix=(cbfsdisk)/fallback
-
set root=(cbfsdisk)
-source (cbfsdisk)/fallback/grub.cfg
+set prefix=($root)/fallback
+
+source $prefix/grub.cfg
diff --git a/projects/grub/configs/coreboot/config b/projects/grub/configs/coreboot/config
index 0b4a8d4e..f5d969f9 100644
--- a/projects/grub/configs/coreboot/config
+++ b/projects/grub/configs/coreboot/config
@@ -1,6 +1,4 @@
-insmod cbfs
-
-set prefix=(cbfsdisk)/fallback
-
set root=(cbfsdisk)
-source (cbfsdisk)/fallback/grub.cfg
+set prefix=($root)/fallback
+
+source $prefix/grub.cfg
diff --git a/projects/grub/configs/uefi/config b/projects/grub/configs/uefi/config
index 0b4a8d4e..f5d969f9 100644
--- a/projects/grub/configs/uefi/config
+++ b/projects/grub/configs/uefi/config
@@ -1,6 +1,4 @@
-insmod cbfs
-
-set prefix=(cbfsdisk)/fallback
-
set root=(cbfsdisk)
-source (cbfsdisk)/fallback/grub.cfg
+set prefix=($root)/fallback
+
+source $prefix/grub.cfg