On 23/07/15 15:36, Richard Shaw wrote:
Oh, but wait, kernels get installed, not upgraded, so I see your point except that on my systems I do seem to have kernel-devel for each kernel thats installed and I only installed kernel-devel once. Maybe though this is a yum/dnf behaviour change - I use yum-deprecated rather than dnf for nightly updates.
Ok, now that that's covered I have a crazy idea... For systemd servicetype "oneshot" which the akmod service is, you can have multiple
ExecStart= directives. Why couldn't we have two, something like:
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/usr/sbin/akmods --from-init
ExecStart=-/usr/sbin/modprobe nvidia
Anything know why that wouldn't work? That should fix the problem with
building modules on startup.
That might be ok but I don't know enough about systemd to know if the two ExecStart lines are run synchronously. Maybe you need the --force as well on the akmods line?
Later...I just tested it and it worked!