F36 nvidia-340xx crash

If your root partition is Btrfs, I’d highly recommend making a snapshot of that that you could then restore if things go badly. Chris Murphy described how to make such a snapshot with just a few commands in the “If you aren’t using snapper” section of this post.

As long as you are installing/uninstalling different kernel versions, one should not affect the other. But watch out for older kernels being removed when installing newer ones due to the installonly_limit setting in /etc/dnf/dnf.conf (you might want to bump that number up a bit so more “fallback” kernels are kept around; by default it only keeps 2 fallback kernels in addition to the current/newest kernel). Also, never run dracut --regenerate-all. That option does rewrite all the kernels on the boot partition at once and it is very dangerous in that it can leave you without a bootable system.