summarylogtreecommitdiffstats
path: root/dracut-remove
blob: af350c7f6df68849ce3ae6a936ce8ea60610b03a (plain)
1
2
3
4
5
6
7
8
#!/bin/bash -e

while read -r line; do
	if [[ "$line" == 'usr/lib/modules/'+([^/])'/pkgbase' ]]; then
		read -r pkgbase < "/${line}"
		rm -f "/boot/vmlinuz-${pkgbase}" "/boot/initramfs-${pkgbase}.img" "/boot/initramfs-${pkgbase}-fallback.img"
	fi
done