index : archiso32 | |
Archlinux32 iso tools | gitolite user |
summaryrefslogtreecommitdiff |
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2012-12-16 20:12:11 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2012-12-16 20:12:11 -0300 |
commit | 89fe9b78ae8ee86b10f60a28fb5a74fe9fb04914 (patch) | |
tree | db2a61121d621aad4e0c0ff7c3a574cc80449fc4 | |
parent | e6409b606197af1d0269c3ca0abcffd66462d076 (diff) |
-rwxr-xr-x | archiso/mkarchiso | 8 |
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 |