summary refs log tree commit diff
path: root/nixos/modules/system/boot/luksroot.nix
diff options
context:
space:
mode:
authorEvgeny Egorochkin <phreedom@yandex.ru>2017-12-22 07:44:30 +0200
committerEvgeny Egorochkin <phreedom@yandex.ru>2017-12-22 07:50:09 +0200
commitab623d8467c9f82666e8a6f7ee48eae9199acb5e (patch)
tree8c91e3b42d1baf94b992620a930d8750f0aa3e69 /nixos/modules/system/boot/luksroot.nix
parentd402bd69a99e72bca1f1149ea7b132a84bbc1cf2 (diff)
downloadnixpkgs-ab623d8467c9f82666e8a6f7ee48eae9199acb5e.tar
nixpkgs-ab623d8467c9f82666e8a6f7ee48eae9199acb5e.tar.gz
nixpkgs-ab623d8467c9f82666e8a6f7ee48eae9199acb5e.tar.bz2
nixpkgs-ab623d8467c9f82666e8a6f7ee48eae9199acb5e.tar.lz
nixpkgs-ab623d8467c9f82666e8a6f7ee48eae9199acb5e.tar.xz
nixpkgs-ab623d8467c9f82666e8a6f7ee48eae9199acb5e.tar.zst
nixpkgs-ab623d8467c9f82666e8a6f7ee48eae9199acb5e.zip
luksRoot: add the missing ECB dependency to fix XTS support, resolves #30940
Diffstat (limited to 'nixos/modules/system/boot/luksroot.nix')
-rw-r--r--nixos/modules/system/boot/luksroot.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/luksroot.nix b/nixos/modules/system/boot/luksroot.nix
index 1db5f75361c..eefee5a479e 100644
--- a/nixos/modules/system/boot/luksroot.nix
+++ b/nixos/modules/system/boot/luksroot.nix
@@ -227,6 +227,11 @@ in
       default =
         [ "aes" "aes_generic" "blowfish" "twofish"
           "serpent" "cbc" "xts" "lrw" "sha1" "sha256" "sha512"
+
+          # workaround until https://marc.info/?l=linux-crypto-vger&m=148783562211457&w=4 is merged
+          # remove once 'modprobe --show-depends xts' shows ecb as a dependency
+          "ecb"
+
           (if pkgs.stdenv.system == "x86_64-linux" then "aes_x86_64" else "aes_i586")
         ];
       description = ''