archiso/mkarchiso: delete all files in /boot not just the kernel and initramfs
There is nothing useful in /boot for the live system.
This commit is contained in:
parent
7c2247f615
commit
31b1dfdbe4
@ -187,13 +187,9 @@ _pacman () {
|
|||||||
_cleanup () {
|
_cleanup () {
|
||||||
_msg_info "Cleaning up what we can on airootfs..."
|
_msg_info "Cleaning up what we can on airootfs..."
|
||||||
|
|
||||||
# Delete initcpio image(s)
|
# Delete all files in /boot
|
||||||
if [[ -d "${airootfs_dir}/boot" ]]; then
|
if [[ -d "${airootfs_dir}/boot" ]]; then
|
||||||
find "${airootfs_dir}/boot" -type f -name '*.img' -delete
|
find "${airootfs_dir}/boot" -mindepth 1 -delete
|
||||||
fi
|
|
||||||
# Delete kernel(s)
|
|
||||||
if [[ -d "${airootfs_dir}/boot" ]]; then
|
|
||||||
find "${airootfs_dir}/boot" -type f -name 'vmlinuz*' -delete
|
|
||||||
fi
|
fi
|
||||||
# Delete pacman database sync cache files (*.tar.gz)
|
# Delete pacman database sync cache files (*.tar.gz)
|
||||||
if [[ -d "${airootfs_dir}/var/lib/pacman" ]]; then
|
if [[ -d "${airootfs_dir}/var/lib/pacman" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user