diff options
| 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 | |
| parent | 7c2247f615ecdff8d236ac90c4bec1c3d255a497 (diff) | |
| download | archiso-31b1dfdbe40dc8c0dace436790708ced784fc402.tar.gz archiso-31b1dfdbe40dc8c0dace436790708ced784fc402.tar.bz2 | |
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-x | archiso/mkarchiso | 8 |
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 |
