Unverified Commit e3fab530 authored by dram's avatar dram Committed by GitHub
Browse files

nixos/btrfs: use blake2b instead of blake2b_generic for kernel 6.19+ (#473428)

parents 63c56996 cbd09c66
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -89,12 +89,11 @@ in
        "crc32c"
      ]
      ++ optionals (config.boot.kernelPackages.kernel.kernelAtLeast "5.5") [
        # Needed for mounting filesystems with new checksums
        "xxhash_generic"
        "blake2b_generic"

        # `sha256` is always available, whereas `sha256_generic` is not available from 6.17 onwards
        # The canonical names of these modules are not very stable, so use the algorithm names that the btrfs module expects.
        # See: https://github.com/torvalds/linux/blob/v6.19-rc1/fs/btrfs/super.c#L2705-L2708
        "xxhash64"
        "sha256" # Should be baked into our kernel, just to be sure
        "blake2b-256"
      ];

      boot.initrd.extraUtilsCommands = mkIf (!config.boot.initrd.systemd.enable) ''