From 89fe9b78ae8ee86b10f60a28fb5a74fe9fb04914 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Sun, 16 Dec 2012 20:12:11 -0300 Subject: [archiso] mkarchiso: Cleanup kernel(s) in /boot Signed-off-by: Gerardo Exequiel Pozzi --- archiso/mkarchiso | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/archiso/mkarchiso b/archiso/mkarchiso index 068ec22..4aca7fc 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -235,9 +235,13 @@ _pacman () _cleanup () { _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 - 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 # Delete pacman database sync cache files (*.tar.gz) if [[ -d "${work_dir}/root-image/var/lib/pacman" ]]; then -- cgit v1.2.3-70-g09d2