index : archiso32 | |
Archlinux32 iso tools | gitolite user |
summaryrefslogtreecommitdiff |
author | nl6720 <nl6720@gmail.com> | 2020-08-12 17:34:33 +0300 |
---|---|---|
committer | nl6720 <nl6720@gmail.com> | 2020-08-17 17:14:06 +0300 |
commit | 31b1dfdbe40dc8c0dace436790708ced784fc402 (patch) | |
tree | 205110dfae245feb5b38ca0afaff84a892befc63 /archiso | |
parent | 7c2247f615ecdff8d236ac90c4bec1c3d255a497 (diff) |
-rwxr-xr-x | archiso/mkarchiso | 8 |
diff --git a/archiso/mkarchiso b/archiso/mkarchiso index c2b6f24..482d934 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -187,13 +187,9 @@ _pacman () { _cleanup () { _msg_info "Cleaning up what we can on airootfs..." - # Delete initcpio image(s) + # Delete all files in /boot if [[ -d "${airootfs_dir}/boot" ]]; then - find "${airootfs_dir}/boot" -type f -name '*.img' -delete - fi - # Delete kernel(s) - if [[ -d "${airootfs_dir}/boot" ]]; then - find "${airootfs_dir}/boot" -type f -name 'vmlinuz*' -delete + find "${airootfs_dir}/boot" -mindepth 1 -delete fi # Delete pacman database sync cache files (*.tar.gz) if [[ -d "${airootfs_dir}/var/lib/pacman" ]]; then |