/usr/share/kernel-wedge/commands/strip-modules is in kernel-wedge 2.96ubuntu3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | #!/bin/bash -e
exit 0 # temporarily disabled, turn on after etch rc2 release
# Remove debugging symbols from kernel modules. Pass the kernel name.
kernel=$1
set -e
for dir in debian/*-modules-$kernel-di; do
for module in `find $dir/lib/modules/ -name '*.o' -or -name '*.ko'`; do
strip -R .comment -R .note -g --strip-unneeded $module
done
done
|