dnf5 icon indicating copy to clipboard operation
dnf5 copied to clipboard

autocheck_running_kernel optoin is not implemented: Failed to find rpm package of a running kernel in sack.

Open lalakii opened this issue 1 year ago • 3 comments

I installed the kernel by source compilation and I removed the default kernel package (rpm).

I have added this option, will still try to find the kernel?

autocheck_running_kernel=False

I don't know if this is the right place for this question, and if it's likely to be fixed?

DEBUG Failed to find rpm package of a running kernel in sack

lalakii avatar Feb 20 '24 10:02 lalakii

autocheck_running_kernel option is not yet implemented in DNF5. See dnf5.conf-todo(5) manual page. Currently, the option is parsed from a configuration file, but it has no effect.

ppisar avatar Feb 20 '24 13:02 ppisar

I see why you see that debug message. DNF5 by default protects a currently running kernel from a removal. To do that it maps the running kernel to an RPM package. If that fails, e.g. because you are running a kernel which is not installed from an RPM package, then it logs it. It's just a debugging message. Feel free to ignore it.

ppisar avatar Feb 20 '24 14:02 ppisar

@ppisar Thank you so much for describing how it works, I lacked some more in-depth programming thinking.

I'tried protect_running_kernel=False, It's working well so far.

lalakii avatar Feb 20 '24 18:02 lalakii