Merge pull request #142059 from Mic92/zfs

zfs: add docs why we strip symbols manual
This commit is contained in:
Jörg Thalheim 2021-10-18 09:44:22 +01:00 committed by GitHub
commit 2be56f0d37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,6 +140,9 @@ let
"INSTALL_MOD_PATH=\${out}"
];
# Enabling BTF causes zfs to be build with debug symbols.
# Since zfs compress kernel modules on installation, our strip hooks skip stripping them.
# Hence we strip modules prior to compression.
postBuild = optionalString buildKernel ''
find . -name "*.ko" -print0 | xargs -0 -P$NIX_BUILD_CORES strip --strip-debug
'';