Merge pull request #141942 from Mic92/zfs-size

zfs: strip debug symbols (closure size)
This commit is contained in:
Jörg Thalheim 2021-10-17 12:54:13 +01:00 committed by GitHub
commit 091567a336
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,6 +140,10 @@ let
"INSTALL_MOD_PATH=\${out}"
];
postBuild = optionalString buildKernel ''
find . -name "*.ko" -print0 | xargs -0 -P$NIX_BUILD_CORES strip --strip-debug
'';
postInstall = optionalString buildKernel ''
# Add reference that cannot be detected due to compressed kernel module
mkdir -p "$out/nix-support"