diff options
author | Leonidas P | 2022-02-18 03:53:29 +0200 |
---|---|---|
committer | Leonidas P | 2022-02-18 03:53:29 +0200 |
commit | 32cd5957a063b1d87ae8c09989b9116c39773569 (patch) | |
tree | a1df08120fad6b7c93ad0a4caf833051e41a3750 /dracut-remove | |
parent | be899e329766f883972335729c709da2c0dbb8ab (diff) | |
download | aur-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-x | dracut-remove | 2 |
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 |