Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2020-08-12 17:34:33 +0300
committernl6720 <nl6720@gmail.com>2020-08-17 17:14:06 +0300
commit31b1dfdbe40dc8c0dace436790708ced784fc402 (patch)
tree205110dfae245feb5b38ca0afaff84a892befc63
parent7c2247f615ecdff8d236ac90c4bec1c3d255a497 (diff)
archiso/mkarchiso: delete all files in /boot not just the kernel and initramfs
There is nothing useful in /boot for the live system.
-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