grub.cfg: search usb *last*, in the main menuentry

There is already a separate menuentry for USB, and most people don't boot their
installed system from USB anyway. This will result in faster boot speeds.
This commit is contained in:
Leah Rowe 2021-10-31 17:14:41 +00:00
parent 62fa042a17
commit 7c998b4538
1 changed files with 3 additions and 3 deletions

View File

@ -97,9 +97,9 @@ menuentry 'Load Operating System (incl. fully encrypted disks) [o]' --hotkey='o
# unnecessary decryption routines in the following order: # unnecessary decryption routines in the following order:
# 1) raw devices and MBR/GPT partitions # 1) raw devices and MBR/GPT partitions
search_grub usb
search_grub ahci search_grub ahci
search_grub ata search_grub ata
search_grub usb
# 2) LVM and RAID which might be used accross multiple devices # 2) LVM and RAID which might be used accross multiple devices
unset lvmvol unset lvmvol
for vol in bootvol rootvol; do for vol in bootvol rootvol; do
@ -146,7 +146,7 @@ menuentry 'Load Operating System (incl. fully encrypted disks) [o]' --hotkey='o
fi fi
set pager=0 set pager=0
echo -n "Attempting to cryptomount: " echo -n "Attempting to cryptomount: "
for dev in ${usbdev} ${ahcidev} ${atadev} ${lvmvol}; do # what about raid? for dev in ${ahcidev} ${atadev} ${lvmvol} ${usbdev}; do # what about raid?
echo -n "${dev} " echo -n "${dev} "
if cryptomount "${dev}" ; then break ; fi if cryptomount "${dev}" ; then break ; fi
done done