|
@@ -138,6 +138,11 @@ echo "/sbin/installkernel $KERNELRELEASE /boot/.vmlinuz-$KERNELRELEASE-rpm /boot
|
|
echo "rm -f /boot/.vmlinuz-$KERNELRELEASE-rpm /boot/.System.map-$KERNELRELEASE-rpm"
|
|
echo "rm -f /boot/.vmlinuz-$KERNELRELEASE-rpm /boot/.System.map-$KERNELRELEASE-rpm"
|
|
echo "fi"
|
|
echo "fi"
|
|
echo ""
|
|
echo ""
|
|
|
|
+echo "%preun"
|
|
|
|
+echo "if [ -x /sbin/new-kernel-pkg ]; then"
|
|
|
|
+echo "new-kernel-pkg --remove $KERNELRELEASE --rminitrd --initrdfile=/boot/initramfs-$KERNELRELEASE.img"
|
|
|
|
+echo "fi"
|
|
|
|
+echo ""
|
|
echo "%files"
|
|
echo "%files"
|
|
echo '%defattr (-, root, root)'
|
|
echo '%defattr (-, root, root)'
|
|
echo "/lib/modules/$KERNELRELEASE"
|
|
echo "/lib/modules/$KERNELRELEASE"
|