Dracut error messages - gpg.conf

Hello, everytime there is a dracut-rebuild, I get the following error messages:

:: Building initramfs for linux-zen (6.12.8-zen1-1-zen)
/gpg.conf: line 1: no-greeting: command not found
/gpg.conf: line 2: no-permission-warning: command not found
/gpg.conf: line 3: lock-never: command not found
/gpg.conf: line 4: keyserver-options: command not found
/gpg.conf: line 5: keyserver-options: command not found
/gpg.conf: line 6: keyserver-options: command not found
/gpg-agent.conf: line 1: disable-scdaemon: command not found
dracut[I]: Executing: /usr/bin/dracut --force --hostonly --no-hostonly-cmdline /boot/initramfs-linux-zen.img 6.12.8-zen1-1-zen

I have no other problem (always reboots fine) but I would like to know what it means and if there is a way to fix it.
Thanks in advance.

Are you using sudo?

Yes, I’m using sudo.

Try deleting or renaming the files, e. g.

sudo mv /gpg.conf /gpg.conf.bak
sudo mv /gpg-agent.conf /gpg-agent.conf.bak

and then rebuild.

There was an update just recently with eos-dracut for another issue with dkms. new version is 1.5-1 This is something different. It may just be some error messaging that is not a problem but I don’t know for sure. @dalto?

I think that any file with extension .conf in / directory makes dracut believe it has to deal with it as a kernel definition like something in /efi/loader/entries