On Tue, Feb 27, 2024 at 06:57:17AM +0300, Alexey Kuznetsov wrote: > > > If so. Then why does your allow users to remove a removable key? > > > > I don't understand this, can you rephrase the question? > > I have two separate drives: a boot device and a usb flash drive with a key. If > I have a usb flash drive attached, grub should automatically unlock the main > drive using such a key, if usb flash isn't here - grub should ask for a > password for the main drive, not failing loading the whole system to the grub > rescue.
When you embed required modules into the GRUB image then your problem should be solved. Or for simplicity use standalone GRUB image. I expect the GRUB fails because it does not have access to the normal.mod which lives on your encrypted partition. You should avoid that. Daniel _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel