-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Hi! First of all, thank you for the guide.
I encountered the following issue.
If you choose to fully encrypt your drive during the installation process of Fedora Workstation (or KDE Plasma Desktop Edition) and follow the steps in the guide, you will get a blackscreen when rebooting after the modinfo -F version nvidia final step. You should see the LUKS prompt to enter the password for the encrypted drive.
The cause of this issue is apparently this:
When Fedora boots on an encrypted drive, it first loads a tiny, temporary "mini-OS" into your RAM. This is called the initramfs.
The sole job of this initramfs is to do whatever is necessary to find and start the real Fedora OS. In your case, its most important job is to ask you for your LUKS password to unlock the drive.
To show you a graphical password prompt, this initramfs needs a graphics driver. By default, it includes the simple, universal nouveau driver.
The NVIDIA installation guide you followed correctly tells you to blacklist the nouveau driver. This prevents it from conflicting with the real NVIDIA driver after the system boots.
Here is the conflict: You have now created an initramfs that is trying to show a graphical LUKS prompt, but it has no graphics driver. The nouveau driver it normally uses is blacklisted, and the proprietary nvidia driver is not included in this "mini-OS" by default.
In order to not be stuck with a blackscreen, you would have to do this prior to rebooting:
-
sudo nano /etc/dracut.conf.d/nvidia.conf - Add the following line
add_drivers+=" nvidia nvidia_modeset nvidia_uvm nvidia_drm " - Save the file and exit by pressing Ctrl+x, then y to confirm, then Enter.
-
sudo dracut --forceThis can take a few minutes.
Now you can reboot. You will see the graphical LUKS prompt and your drivers are installed correctly.
If you already messed up and rebooted without doing these steps (blackscreen), this is how I still managed to save my installation:
- Reboot the computer.
- When the GRUB menu appears, press e to edit.
- Find the line that starts with
linux - Remove
rhgbandquietif they are there, go to the very end of that line, and add a space, followed by the number 3. - Press Ctrl+x to boot. This will get you to a text-based login where you can enter the LUKS password and afterwards your Fedora username and password.
- Now follow the earlier steps above (
sudo nano /etc/dracut.conf.d/nvidia.conf) etc.
Please integrate this information into your guide, in order to save some people from getting a headache 🙂