Message ID | 20211115205341.9724-4-dev@jpoiret.xyz |
---|---|
State | Accepted |
Headers | show |
Series | Add support for LUKS2 root partition | expand |
Context | Check | Description |
---|---|---|
cbaines/comparison | success | View comparision |
cbaines/git branch | success | View Git branch |
cbaines/applying patch | success | View Laminar job |
cbaines/issue | success | View issue |
diff --git a/gnu/installer/parted.scm b/gnu/installer/parted.scm index cbe676017b..00de0a30fa 100644 --- a/gnu/installer/parted.scm +++ b/gnu/installer/parted.scm @@ -1165,8 +1165,9 @@ (define (luks-format-and-open user-partition) (lambda (key-file) (syslog "formatting and opening LUKS entry ~s at ~s~%" label file-name) - (system* "cryptsetup" "-q" "luksFormat" file-name key-file) - (system* "cryptsetup" "open" "--type" "luks" + (system* "cryptsetup" "-q" "luksFormat" "--type" "luks2" + "--pbkdf" "pbkdf2" file-name key-file) + (system* "cryptsetup" "open" "--key-file" key-file file-name label))))) (define (luks-close user-partition)