I am seeing dkms errors when installing / updating kernels. I am not sure when they started to appear.
I am using zfs and when dkms is excecuted during kernel install or update I see this:
/usr/lib/kernel/install.d/40-dkms.install: Zeile 4: /../trash/postinst.d/dkms: Datei oder Verzeichnis nicht gefunden
When I look at the script 40-dkms.install it does not make sense to me:
#!/bin/sh
if [ "$1" = "add" ]; then
/../trash/postinst.d/dkms "$2"
fi
if [ "$1" = "remove" ]; then
/../trash/prerm.d/dkms "$2"
fi
It is using absolute path like /../trash/postinst.d/dkms or /../trash/prerm.d/dkms. That seems strange.
I removed the dkms package and reinstalled it. But that does not change anything.
I noticed the same thing. entries from /efi/loader/entries did not get properly removed. I don’t know what prerm.d relates to because kernell-install runs both. I assume remove the entry but do they both do the same thing idk.
ok I see there are scripts missing in /…/trash/postinst.d/dkms and the prerm.d folders that didn’t get run. I guess if I can find these and see what they say I can move them there or at least see what didn’t get complete.
It looks like it is coming from the latest version of dkms.
The beginning of that path is supposed to be replaced with an absolute path but for some reason it is getting replaced with .. instead of the correct path.