Merge pull request #141942 from Mic92/zfs-size
zfs: strip debug symbols (closure size)
commit091567a3363b1999bb9216e5779c827592db651c
authorJörg Thalheim <Mic92@users.noreply.github.com>
dateSun 17 Oct 2021, 12:54 (5 years ago)
parenta81d34ceefdd9f
pkgs/os-specific/linux/zfs/default.nix+4
@@ -140,6 +140,10 @@ let
140140 "INSTALL_MOD_PATH=\${out}"
141141 ];
142142
143+ postBuild = optionalString buildKernel ''
144+ find . -name "*.ko" -print0 | xargs -0 -P$NIX_BUILD_CORES strip --strip-debug
145+ '';
146+
143147 postInstall = optionalString buildKernel ''
144148 # Add reference that cannot be detected due to compressed kernel module
145149 mkdir -p "$out/nix-support"