Merge pull request #317032 from anpin/fix/lvm-thin

This commit is contained in:
Sandro 2024-06-26 13:09:58 +02:00 committed by GitHub
commit 909f74453e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,6 +25,30 @@ rustPlatform.buildRustPackage rec {
inherit (nixosTests.lvm2) lvm-thinpool-linux-latest;
};
# required for config compatibility with configs done pre 0.9.0
# see https://github.com/NixOS/nixpkgs/issues/317018
postInstall = ''
ln -s $out/bin/pdata_tools $out/bin/cache_check
ln -s $out/bin/pdata_tools $out/bin/cache_dump
ln -s $out/bin/pdata_tools $out/bin/cache_metadata_size
ln -s $out/bin/pdata_tools $out/bin/cache_repair
ln -s $out/bin/pdata_tools $out/bin/cache_restore
ln -s $out/bin/pdata_tools $out/bin/cache_writeback
ln -s $out/bin/pdata_tools $out/bin/era_check
ln -s $out/bin/pdata_tools $out/bin/era_dump
ln -s $out/bin/pdata_tools $out/bin/era_invalidate
ln -s $out/bin/pdata_tools $out/bin/era_restore
ln -s $out/bin/pdata_tools $out/bin/thin_check
ln -s $out/bin/pdata_tools $out/bin/thin_delta
ln -s $out/bin/pdata_tools $out/bin/thin_dump
ln -s $out/bin/pdata_tools $out/bin/thin_ls
ln -s $out/bin/pdata_tools $out/bin/thin_metadata_size
ln -s $out/bin/pdata_tools $out/bin/thin_repair
ln -s $out/bin/pdata_tools $out/bin/thin_restore
ln -s $out/bin/pdata_tools $out/bin/thin_rmap
ln -s $out/bin/pdata_tools $out/bin/thin_trim
'';
meta = with lib; {
homepage = "https://github.com/jthornber/thin-provisioning-tools/";
description = "Suite of tools for manipulating the metadata of the dm-thin device-mapper target";