From 31b1dfdbe40dc8c0dace436790708ced784fc402 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Wed, 12 Aug 2020 17:34:33 +0300 Subject: archiso/mkarchiso: delete all files in /boot not just the kernel and initramfs There is nothing useful in /boot for the live system. --- archiso/mkarchiso | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'archiso') 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 -- cgit v1.2.3-54-g00ecf