Extend Linux kernel file name by wildcard.

Extend Linux kernel file name by wildcard, i.e., use vmlinu* to match
either vmlinuz or vmlinuz.
This commit is contained in:
Steven Shiau 2024-11-08 08:14:29 +08:00
parent 54395accc7
commit 87bb3e857d

View File

@ -74,7 +74,7 @@ case "${LB_INITRAMFS}" in
rm -f chroot/etc/dracut.conf.d/20-live-module-${SOURCE_DATE_EPOCH}.conf
;;
esac
rm -f chroot/vmlinuz.old
rm -f chroot/vmlinu*.old
rm -f chroot/initrd.img.old
rm -f chroot/initrd.img_has_already_been_regenerated