nixos/btrfs: use sha256 instead of sha256_generic

Upstream dropped `sha256_generic` in https://github.com/torvalds/linux/commit/e96cb9507f2d8ba150d417dcd283204564945831

Quoting from upstream:

> sha256_blocks_generic() is moved from lib/crypto/sha256-generic.c into
  lib/crypto/sha256.c.  It's now a static function marked with
  __maybe_unused, so the compiler automatically eliminates it in any
  cases where it's not used.

Co-authored-by: dramforever <dramforever@live.com>
This commit is contained in:
Guanran Wang
2025-08-20 01:34:50 +05:30
committed by Masum Reza
co-authored by dramforever
parent 6f1ff1f476
commit 7faeef0e92
+3 -1
View File
@@ -82,7 +82,9 @@ in
# Needed for mounting filesystems with new checksums
"xxhash_generic"
"blake2b_generic"
"sha256_generic" # Should be baked into our kernel, just to be sure
# `sha256` is always available, whereas `sha256_generic` is not available from 6.17 onwards
"sha256" # Should be baked into our kernel, just to be sure
];
boot.initrd.extraUtilsCommands = mkIf (!config.boot.initrd.systemd.enable) ''