drbd driver: 9.2.7 -> 9.2.8

- xz compression added for module files
- no support for kernel 6.8 or newer
- sri format used for hash
- release notes for 24.05 updated

Signed-off-by: birkb <birk@batchworks.de>
This commit is contained in:
birkb 2024-04-20 10:26:25 +02:00
parent 63ac7bec8d
commit e475ed648e
No known key found for this signature in database
2 changed files with 10 additions and 3 deletions

View File

@ -616,7 +616,7 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m
- QtMultimedia has changed its default backend to `QT_MEDIA_BACKEND=ffmpeg` (previously `gstreamer` on Linux or `darwin` on MacOS).
The previous native backends remain available but are now minimally maintained. Refer to [upstream documentation](https://doc.qt.io/qt-6/qtmultimedia-index.html#ffmpeg-as-the-default-backend) for further details about each platform.
- The `drbd` out-of-tree Linux kernel driver has been added in version `9.2.7`. With it the DRBD 9.x features can be used instead of the 8.x features provided by the `8.4.11` in-tree driver.
- The `drbd` out-of-tree Linux kernel driver has been added in version `9.2`. With it the DRBD 9.x features can be used instead of the 8.x features provided by the `8.4.11` in-tree driver.
- The oil shell's c++ version is now available as `oils-for-unix`. The python version is still available as `oil`

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
name = "drbd-${version}-${kernel.version}";
version = "9.2.7";
version = "9.2.8";
src = fetchurl {
url = "https://pkg.linbit.com//downloads/drbd/9/drbd-${version}.tar.gz";
sha256 = "1355ns10z0fjgqsdpf09qfy01j8lg2n7zy4kclmar3s798n3mh56";
hash = "sha256-LqK1lPucab7wKvcB4VKGdvBIq+K9XtuO2m0DP5XtK3M=";
};
hardeningDisable = [ "pic" ];
@ -41,6 +41,12 @@ stdenv.mkDerivation rec {
substituteInPlace Makefile --replace 'SHELL=/bin/bash' 'SHELL=${builtins.getEnv "SHELL"}'
'';
postFixup = ''
for ko in $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/block/drbd/*.ko; do
xz --compress -6 --threads=0 $ko
done
'';
enableParallelBuilding = true;
meta = with lib; {
@ -53,5 +59,6 @@ stdenv.mkDerivation rec {
DRBD is a software-based, shared-nothing, replicated storage solution
mirroring the content of block devices (hard disks, partitions, logical volumes, and so on) between hosts.
'';
broken = lib.versionAtLeast kernel.version "6.8"; # wait until next DRBD release for 6.8 support https://github.com/LINBIT/drbd/issues/87#issuecomment-2059323084
};
}