summarylogtreecommitdiffstats
path: root/dracut-remove
diff options
context:
space:
mode:
authorLeonidas P2022-02-18 03:53:29 +0200
committerLeonidas P2022-02-18 03:53:29 +0200
commit32cd5957a063b1d87ae8c09989b9116c39773569 (patch)
treea1df08120fad6b7c93ad0a4caf833051e41a3750 /dracut-remove
parentbe899e329766f883972335729c709da2c0dbb8ab (diff)
downloadaur-32cd5957a063b1d87ae8c09989b9116c39773569.tar.gz
Use vmlinuz as target for install
Fixes issues with kernel-modules-hook. mkinitcpio uses vmlinuz instead of pkgbase as well. Also, simplify some scripts
Diffstat (limited to 'dracut-remove')
-rwxr-xr-xdracut-remove2
1 files changed, 1 insertions, 1 deletions
diff --git a/dracut-remove b/dracut-remove
index af350c7f6df6..6b1a4bd4997e 100755
--- a/dracut-remove
+++ b/dracut-remove
@@ -1,7 +1,7 @@
#!/bin/bash -e
while read -r line; do
- if [[ "$line" == 'usr/lib/modules/'+([^/])'/pkgbase' ]]; then
+ if [[ $line == */pkgbase ]]; then
read -r pkgbase < "/${line}"
rm -f "/boot/vmlinuz-${pkgbase}" "/boot/initramfs-${pkgbase}.img" "/boot/initramfs-${pkgbase}-fallback.img"
fi