Skip to content

Commit

Permalink
attempt to fix #30940 more robustly
Browse files Browse the repository at this point in the history
  • Loading branch information
aristidb committed Feb 26, 2018
1 parent a06b81b commit b8f4df9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions nixos/modules/system/boot/luksroot.nix
Expand Up @@ -228,10 +228,6 @@ in
[ "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 = ''
Expand Down Expand Up @@ -441,7 +437,10 @@ in
# Some modules that may be needed for mounting anything ciphered
# Also load input_leds to get caps lock light working (#12456)
boot.initrd.availableKernelModules = [ "dm_mod" "dm_crypt" "cryptd" "input_leds" ]
++ luks.cryptoModules;
++ luks.cryptoModules
# 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
++ (if builtins.elem "xts" luks.cryptoModules then ["ecb"] else []);

# copy the cryptsetup binary and it's dependencies
boot.initrd.extraUtilsCommands = ''
Expand Down

0 comments on commit b8f4df9

Please sign in to comment.