jobextra/dracut/dracut-remove
joborun linux 6da401934c add dracut signify
upg ethtool opensmtpd nftables
2023-10-26 01:49:12 +03:00

9 lines
267 B
Bash

#!/bin/bash
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