On my desktop, just pulling the 4090 would create a non booting issue. I had to remove the GPU from the pci slot.
The grub command to hide it is here (the first section)