]> gitweb.fluxo.info Git - bootless.git/commitdiff
Load lvm module twice on bootfde
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Jul 2016 11:59:29 +0000 (08:59 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Jul 2016 11:59:29 +0000 (08:59 -0300)
templates/grub.cfg

index de8e8e9bd4c49c2a2d570c589f138084011a3682..b4c51985a8a70324092440e1c3b157c8f013ad90 100644 (file)
@@ -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}..."