base-files: vkpurge: remove debugging symbols too.

This commit is contained in:
Christian Neukirchen 2015-03-14 17:00:02 +01:00
parent 1453661d75
commit a9807a717c
1 changed files with 10 additions and 0 deletions

View File

@ -84,6 +84,16 @@ remove_kernel()
if [ -d /usr/src/kernel-headers-${rmkver} ]; then
rm -rf /usr/src/kernel-headers-${rmkver}
fi
# Remove debugging symbols.
dfile=/usr/lib/debug/boot/vmlinux-${rmkver}
if [ -f "${dfile}" ]; then
echo "Removing ${dfile}..."
rm -f ${dfile}
fi
if [ -d /usr/lib/debug/usr/lib/modules/${rmkver} ]; then
echo "Removing /usr/lib/debug/usr/lib/modules/${rmkver}..."
rm -rf /usr/lib/debug/usr/lib/modules/${rmkver}
fi
}
ARCH=$(uname -m)