Adding default hook to remove linux-image backup files.
This commit is contained in:
parent
f225840b96
commit
f7ba1350f8
|
@ -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
|
||||
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# Remove backup files
|
||||
|
||||
rm -f /boot/*.bak
|
||||
rm -f /boot/*.old-dkms
|
Loading…
Reference in New Issue