Package Details: dracut-hook-uefi 0.4.2-1

Git Clone URL: (read-only, click to copy)
Package Base: dracut-hook-uefi
Description: Install/remove hooks for dracut unified kernel images
Upstream URL:
Licenses: BSD
Conflicts: dracut-hook
Submitter: samcday
Maintainer: samcday
Last Packager: samcday
Votes: 3
Popularity: 0.45
First Submitted: 2020-10-14 16:16
Last Updated: 2020-10-14 16:20

Latest Comments

mrabe89 commented on 2021-04-09 19:04

Like lunaryorn said, dracut-remove is assuming the ESP is mounted at /boot. But that's only dracuts last fallback path, if neither /efi, nor /boot/efi exists. (details: )

I changed my dracut-remove to use the same mechanism.

--- dracut-remove   2021-04-09 20:54:04.985000688 +0200
+++   2021-04-09 20:57:11.924297085 +0200
@@ -3,6 +3,16 @@
 while read -r line; do
    if [[ "$line" == 'usr/lib/modules/'+([^/])'/pkgbase' ]]; then
        kver=$(basename $(dirname ${line}))
-       rm -v /boot/EFI/Linux/linux-${kver}-$(cat /etc/machine-id)-*.efi
+       if [[ -d /efi ]] && mountpoint -q /efi; then
+           efidir=/efi/EFI
+       else
+           efidir=/boot/EFI
+           if [[ -d $dracutsysrootdir/boot/efi/EFI ]]; then
+               efidir=/boot/efi/EFI
+           fi
+       fi
+       rm -v ${efidir}/Linux/linux-${kver}-$(cat /etc/machine-id)-*.efi

lunaryorn commented on 2021-03-08 17:14

dracut-remove assumes that the ESP is mounted at /boot, but that's not the case for me. According to the wiki ( /efi is another common mount point, and in fact that's also what systemd uses by default (

Would you mind to add support for /efi as well?

anonfunc commented on 2021-02-18 15:31

Just for reference, I had to comment line 28 of dracut-install to make it compatible with kernel-modules-hook.

I don't think that's the best or correct solution, but it seems to work for me.