summaryrefslogtreecommitdiff
path: root/config/grub
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-12-18 05:11:06 +0000
committerLeah Rowe <leah@libreboot.org>2023-12-18 05:11:06 +0000
commit2d6e5ca4c41021686601f7701f77c95bce0f8ced (patch)
tree79c24da6c795613c0f61955cbf914c858bb99aac /config/grub
parent49eed9ac46849a2d312d3603901d28ae24deb320 (diff)
grub.cfg: scan lvm volumes last
lvm/* is slow to resolve in grub, on some machines, because grub enumeration is very slow in general. however, many people will install distros with any number of lvm configurations, so we should try to support them. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/grub')
-rw-r--r--config/grub/config/grub.cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/grub/config/grub.cfg b/config/grub/config/grub.cfg
index 9439778a..f6b5a193 100644
--- a/config/grub/config/grub.cfg
+++ b/config/grub/config/grub.cfg
@@ -142,6 +142,10 @@ menuentry 'Load Operating System (incl. fully encrypted disks) [o]' --hotkey='o
search_grub crypto
+ for vol in lvm/* ; do
+ try_user_config "${vol}"
+ done
+
if [ "${grub_scan_disk}" != "ata" ]; then
# Last resort, if all else fails
set root=ahci0,1