diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2016-07-04 18:34:01 -0300 | 
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2016-07-04 18:34:01 -0300 | 
| commit | 080e08db94ea1d40e2542337688ca91fca3cceb3 (patch) | |
| tree | 4bea6d4fe8c99a698080de763e410fb7a61bf0c0 | |
| parent | a7e6e636ed0bf6ca1900c066728427b3e043585e (diff) | |
| download | bootless-080e08db94ea1d40e2542337688ca91fca3cceb3.tar.gz bootless-080e08db94ea1d40e2542337688ca91fca3cceb3.tar.bz2 | |
Load lvm after running cryptomount on bootfde
| -rw-r--r-- | templates/grub.cfg | 8 | 
1 files changed, 7 insertions, 1 deletions
| diff --git a/templates/grub.cfg b/templates/grub.cfg index 35827db..de8e8e9 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 +  # the inside your encrypted OS!    insmod luks -  insmod lvm    set volume=${1} @@ -51,6 +52,11 @@ 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. +  insmod lvm +    echo        "Loading ${volume}..."    linux       /boot/vmlinuz-${version} root=/dev/mapper/${target} cryptopts=target=${target},source=${source} ro quiet    echo        'Loading initial ramdisk ...' | 
