diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2016-07-07 08:59:29 -0300 | 
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2016-07-07 08:59:29 -0300 | 
| commit | 577545c434bead70faaef0574a634041d1be2a09 (patch) | |
| tree | b290746777ceac031e8e23d0f7210be0e77ebfc1 | |
| parent | c54aec10bb9b7367f97956def49650bf7076ad37 (diff) | |
| download | bootless-577545c434bead70faaef0574a634041d1be2a09.tar.gz bootless-577545c434bead70faaef0574a634041d1be2a09.tar.bz2 | |
Load lvm module twice on bootfde
| -rw-r--r-- | templates/grub.cfg | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/templates/grub.cfg b/templates/grub.cfg index de8e8e9..b4c5198 100644 --- a/templates/grub.cfg +++ b/templates/grub.cfg @@ -26,8 +26,9 @@ set menu_color_highlight=yellow/red  # 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} @@ -53,8 +54,9 @@ function bootfde {    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}..." | 
