[archiso] mkarchiso: Cleanup kernel(s) in /boot

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
Gerardo Exequiel Pozzi 2012-12-16 20:12:11 -03:00
parent e6409b6061
commit 89fe9b78ae

View File

@ -235,9 +235,13 @@ _pacman ()
_cleanup () { _cleanup () {
_msg_info "Cleaning up what we can on root-image..." _msg_info "Cleaning up what we can on root-image..."
# remove the initcpio images that were generated for the host system # Delete initcpio image(s)
if [[ -d "${work_dir}/root-image/boot" ]]; then if [[ -d "${work_dir}/root-image/boot" ]]; then
find "${work_dir}/root-image/boot" -name '*.img' -delete find "${work_dir}/root-image/boot" -type f -name '*.img' -delete
fi
# Delete kernel(s)
if [[ -d "${work_dir}/root-image/boot" ]]; then
find "${work_dir}/root-image/boot" -type f -name 'vmlinuz*' -delete
fi fi
# Delete pacman database sync cache files (*.tar.gz) # Delete pacman database sync cache files (*.tar.gz)
if [[ -d "${work_dir}/root-image/var/lib/pacman" ]]; then if [[ -d "${work_dir}/root-image/var/lib/pacman" ]]; then