From eec4dcd97e60e46339d5cc133d45e6914a8f5cfa Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 31 Oct 2021 18:10:34 +0000 Subject: [PATCH] grub.cfg: scan grub.cfg on lvm first, before crypto volumes In most LUKS setups, the user configured LVM, so doing this check first will increase boot speeds. --- resources/grub/config/grub.cfg | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/grub/config/grub.cfg b/resources/grub/config/grub.cfg index ad8161f..ef3c8a4 100644 --- a/resources/grub/config/grub.cfg +++ b/resources/grub/config/grub.cfg @@ -153,13 +153,14 @@ menuentry 'Load Operating System (incl. fully encrypted disks) [o]' --hotkey='o fi done -# 3) encrypted devices/partitions - search_grub crypto -# 4) LVM inside LUKS containers +# 3) LVM inside LUKS containers for vol in ${lvmvol}; do try_user_config "${vol}" done +# 4) encrypted devices/partitions + search_grub crypto + # TODO: generalize last resorts # Use first connected device? not just sata port 1