summaryrefslogtreecommitdiff
path: root/archiso/mkarchiso
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2012-12-16 20:12:11 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2012-12-16 20:12:11 -0300
commit89fe9b78ae8ee86b10f60a28fb5a74fe9fb04914 (patch)
treedb2a61121d621aad4e0c0ff7c3a574cc80449fc4 /archiso/mkarchiso
parente6409b606197af1d0269c3ca0abcffd66462d076 (diff)
downloadarchiso32-89fe9b78ae8ee86b10f60a28fb5a74fe9fb04914.tar.xz
[archiso] mkarchiso: Cleanup kernel(s) in /boot
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'archiso/mkarchiso')
-rwxr-xr-xarchiso/mkarchiso8
1 files 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