aboutsummaryrefslogtreecommitdiff
path: root/gnu/bootloader
diff options
context:
space:
mode:
authorJosselin Poiret <dev@jpoiret.xyz>2021-11-15 20:53:39 +0000
committerLudovic Courtès <ludo@gnu.org>2021-12-01 17:51:37 +0100
commitadce91a3ec0cb2912daa6eefe9324c15ff3126f7 (patch)
tree5f5fb0b86238ab4e9be08e4f84f3422e7d4d0069 /gnu/bootloader
parent9f371f23ebfa20f70b3bfd55dc459b683f21ba91 (diff)
downloadguix-adce91a3ec0cb2912daa6eefe9324c15ff3126f7.tar
guix-adce91a3ec0cb2912daa6eefe9324c15ff3126f7.tar.gz
gnu: system: Add LUKS2 support for the root file system.
* gnu/bootloader/grub.scm (grub-configuration-file): Add 'insmod luks2'. * gnu/system/mapped-devices.scm (open-luks-device): Create '/run/cryptsetup/' directory. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/bootloader')
-rw-r--r--gnu/bootloader/grub.scm3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnu/bootloader/grub.scm b/gnu/bootloader/grub.scm
index d8e888ff40..42f71aa4db 100644
--- a/gnu/bootloader/grub.scm
+++ b/gnu/bootloader/grub.scm
@@ -415,8 +415,7 @@ menuentry ~s {
;; Other type of devices aren't implemented.
#~()))
(let ((devices (map crypto-device->cryptomount store-crypto-devices))
- ;; XXX: Add luks2 when grub 2.06 is packaged.
- (modules #~(format port "insmod luks~%")))
+ (modules #~(format port "insmod luks~%insmod luks2~%")))
(if (null? devices)
devices
(cons modules devices))))