Also, the reason why I moved self._disable_nvidia() down is that we want the other stuff that ends up in the modprobe conf file (from self._enable_runtimepm() and self._enable_kms()) to take place before we update the initramfs, which we do in self._disable_nvidia().
@Łukasz I verified LP: #1904583
Also, the reason why I moved self._disable_ nvidia( ) down is that we want the other stuff that ends up in the modprobe conf file (from self._enable_ runtimepm( ) and self._enable_kms()) to take place before we update the initramfs, which we do in self._disable_ nvidia( ).
So it's all correct.