zfs: add docs why we strip symbols manual

This commit is contained in:
Jörg Thalheim 2021-10-18 09:49:34 +02:00
parent ea31b79541
commit 54bf57aa1b

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
'';