Adding default hook to remove linux-image backup files.

This commit is contained in:
Daniel Baumann 2012-11-28 17:43:29 +01:00
parent f225840b96
commit f7ba1350f8
2 changed files with 12 additions and 2 deletions

View File

@ -629,7 +629,8 @@ Set_defaults ()
remove-dbus-machine-id \
remove-openssh-server-host-keys \
remove-python-py \
remove-udev-persistent-rules}"
remove-udev-persistent-rules \
remove-linux-image-backups}"
;;
kubuntu)
@ -640,7 +641,8 @@ Set_defaults ()
remove-gnome-icon-cache \
remove-openssh-server-host-keys \
remove-python-py \
remove-udev-persistent-rules}"
remove-udev-persistent-rules \
remove-linux-image-backups}"
;;
esac

View File

@ -0,0 +1,8 @@
#!/bin/sh
set -e
# Remove backup files
rm -f /boot/*.bak
rm -f /boot/*.old-dkms