Getting to boot your system when nouveau kernel panics

I keep forgetting this, so here goes. First off, boot it up right:

rdblacklist=nouveau nofbmodeset init=/bin/sh

Then create ”’/etc/modprobe.d/blacklist-nvidia.conf”’ and put this in there:

blacklist nouveau

Last step is to rebuild your initramfs, here is an example on a CentOS 6.3 box:

dracut -f /boot/initramfs-$(uname -r).img $(uname -r)

Reboot and profit.