kernel-install: cleanup old kernel binary on remove

Don't let kernel images accumulate on EFI partition.
This commit is contained in:
Marek Marczykowski-Górecki 2018-05-22 19:51:47 +02:00
parent 03959b670c
commit 861ddc9ce0
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -105,5 +105,6 @@ case "$COMMAND" in
mv $EFI_DIR/xen.cfg.new $EFI_DIR/xen.cfg
fi
rm -f "$EFI_DIR/initramfs-${KVER}.img"
rm -f "$EFI_DIR/vmlinuz-${KVER}"
;;
esac