(nvidia) Pre-configure kernel arguments
When bootc is used to deploy the image, kernel arguments can be injected using https://containers.github.io/bootc/building/kernel-arguments.html
This commit is contained in:
parent
ffeb8e6e33
commit
7a6c06dd31
3 changed files with 7 additions and 0 deletions
|
@ -6,5 +6,8 @@ RUN dnf5 -y install akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-cuda &&
|
||||||
rpm -e akmod-nvidia && \
|
rpm -e akmod-nvidia && \
|
||||||
dnf5 -y autoremove
|
dnf5 -y autoremove
|
||||||
|
|
||||||
|
# Apply configuration
|
||||||
|
COPY usr.nvidia /usr
|
||||||
|
|
||||||
# https://github.com/ostreedev/ostree-rs-ext/issues/159
|
# https://github.com/ostreedev/ostree-rs-ext/issues/159
|
||||||
RUN ostree container commit
|
RUN ostree container commit
|
||||||
|
|
|
@ -6,5 +6,8 @@ RUN dnf5 -y install akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-cuda &&
|
||||||
rpm -e akmod-nvidia && \
|
rpm -e akmod-nvidia && \
|
||||||
dnf5 -y autoremove
|
dnf5 -y autoremove
|
||||||
|
|
||||||
|
# Apply configuration
|
||||||
|
COPY usr.nvidia /usr
|
||||||
|
|
||||||
# https://github.com/ostreedev/ostree-rs-ext/issues/159
|
# https://github.com/ostreedev/ostree-rs-ext/issues/159
|
||||||
RUN ostree container commit
|
RUN ostree container commit
|
||||||
|
|
1
usr.nvidia/lib/bootc/kargs.d/10-nvidia-drivers.toml
Normal file
1
usr.nvidia/lib/bootc/kargs.d/10-nvidia-drivers.toml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
kargs = ["rd.driver.blacklist=nouveau","modprobe.blacklist=nouveau","nvidia-drm.modeset=1"]
|
Loading…
Add table
Add a link
Reference in a new issue