Are kernel arguments no longer needed for NVIDIA images?

Hi, I’ve recently noticed that booting silverblue-nvidia image without configuring kernel arguments still loads NVIDIA driver.
so I wanted to ask if that is actually an intended behavior? or if it may change in the future
Thank you!

$ rpm-ostree kargs
root=UUID=3aeecded-fb0f-4037-9154-e306350260bb rw quiet rhgb ostree=/ostree/boot.1/default/46ada4c7470f0d9f83c615eafc492a44b93993a82fc8f704faca672b610c076f/0
$ rpm-ostree status 
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/silverblue-nvidia:latest
                   Digest: sha256:12787d84fa137cd5649a9005efe98ec9d05ea46245fdc50aecb7dd007f2035b1
                  Version: 40.20240702.0 (2024-07-02T19:12:14.474Z)
$ nvidia-smi
Wed Jul  3 04:18:26 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 555.58                 Driver Version: 555.58         CUDA Version: 12.5     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce GTX 750 Ti      Off |   00000000:01:00.0  On |                  N/A |
| 40%   33C    P8              1W /   38W |     230MiB /   2048MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      4036      G   /usr/libexec/Xorg                              51MiB |
|    0   N/A  N/A      4202      G   /usr/bin/gnome-shell                          154MiB |
|    0   N/A  N/A      4930      G   /app/bin/ptyxis                                 9MiB |
+-----------------------------------------------------------------------------------------+

That’s a great change!
Makes rebasing amazingly easy. Also great for possible future changes to drivers.

I think they changed it so we don’t have to wait 10 minutes after every update or rebase. It has been this way for about 2/3 months so will probably not change

Black listing nouveau and setting nvidia modeset are made with the files /usr/lib/modprobe.d/nvidia.conf and /usr/lib/modprobe.d/nvidia-modeset.conf.

1 Like

We are now building a custom initramfs for the Nvidia images. This means that the correct settings for the Nvidia driver are being applied there and you do not need to rely on kargs for them.

2 Likes

I find that super convenient, thank you for all the great work!

Should such a change be reflected in the Docs?