Skip to content

Commit

Permalink
util-linux: backport bcache checksum patches
Browse files Browse the repository at this point in the history
In util-linux 2.39, blkid was improved to verify the checksums for
several types of block devices. In the bcache case, this calculation was
incorrect, leading to a regression where valid bcache cache devices
would not be detected any more. In some cases, this can even break the
boot because a required bcache device does not come up any more.

In util-linux/util-linux#2293, a fix was
introduced upstream. Include these patches to make bcache detection work
properly again.
  • Loading branch information
alois31 committed Jun 3, 2023
1 parent 3ef16ff commit de64309
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkgs/os-specific/linux/util-linux/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ stdenv.mkDerivation rec {
url = "https://github.com/util-linux/util-linux/commit/1bd85b64632280d6bf0e86b4ff29da8b19321c5f.diff";
hash = "sha256-dgu4de5ul/si7Vzwe8lr9NvsdI1CWfDQKuqvARaY6sE=";
})

# FIXME: backport bcache detection fixes, remove in next release
(fetchpatch {
url = "https://github.com/util-linux/util-linux/commit/158639a2a4c6e646fd4fa0acb5f4743e65daa415.diff";
hash = "sha256-9F1OQFxKuI383u6MVy/UM15B6B+tkZFRwuDbgoZrWME=";
})
(fetchpatch {
url = "https://github.com/util-linux/util-linux/commit/00a19fb8cdfeeae30a6688ac6b490e80371b2257.diff";
hash = "sha256-w1S6IKSoL6JhVew9t6EemNRc/nrJQ5oMqFekcx0kno8=";
})
];

outputs = [ "bin" "dev" "out" "lib" "man" ];
Expand Down

0 comments on commit de64309

Please sign in to comment.