base-files: vkpurge: remove debugging symbols too.
This commit is contained in:
parent
1453661d75
commit
a9807a717c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue