diff options
author | Leah Rowe <leah@libreboot.org> | 2024-06-09 16:06:07 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-06-09 16:06:07 +0100 |
commit | c5441bb9f538ca45468db21c1c62f45680349a3d (patch) | |
tree | 59246ade782fa728b2f0fd56ea944aac39584421 /config/data | |
parent | d33556c6ae548415a274c0a10bb122535c2fad9a (diff) |
re-add ability to use cbfs grub.cfg as default
i removed this before, when making grub multi-tree,
because the design i used in an earlier version of
the patch actually added the grub.elf generation
to grub source itself, but then i decided to hack
around the grub build system from lbmk/cbmk instead
re-add this functionality, so that users can easily
insert their own custom grub.cfg into cbfs without
needing to re-build their image.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/data')
-rw-r--r-- | config/data/grub/memdisk.cfg | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/data/grub/memdisk.cfg b/config/data/grub/memdisk.cfg new file mode 100644 index 00000000..543e421d --- /dev/null +++ b/config/data/grub/memdisk.cfg @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: GPL-3.0-or-later +# Copyright (C) 2023 Leah Rowe <leah@libreboot.org> + +set prefix=(memdisk)/boot/grub + +if [ -f (cbfsdisk)/grub.cfg ]; then + source (cbfsdisk)/grub.cfg +else + source (memdisk)/boot/grub/grub_default.cfg +fi |