# Usage: bootfde <volume> <kernel-version> [source] [target]
#
function bootfde {
- # Loads luks module you can access kernel and initrd from
+ # Loads lvm and luks modules you can access kernel and initrd from
# the inside your encrypted OS!
+ insmod lvm
insmod luks
set volume=${1}
cryptomount lvm/${volume}
set root=(crypto0)
- # Load the LVM module just after loading the encrypted volume
- # so Grub can detect volumes that are inside it.
+ # Load the LVM module again after loading the encrypted volume
+ # so Grub can detect LVM volumes inside crypto0.
+ rmmod lvm
insmod lvm
echo "Loading ${volume}..."