linux/manual-config.nix: When stripping, use xargs -r in case CONFIG_MODULES=y but no modules are actually installed

This commit is contained in:
Shea Levy 2012-08-01 23:32:02 -04:00
parent 4aba2bb3f5
commit 1b7264d349

View file

@ -140,7 +140,7 @@ stdenv.mkDerivation {
postFixup = optionalString isModular ''
if [ -z "$dontStrip" ]; then
find $out -name "*.ko" -print0 | xargs -0 strip -S
find $out -name "*.ko" -print0 | xargs -0 -r strip -S
fi
'';