Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchiso/mkarchiso8
1 files changed, 2 insertions, 6 deletions
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