add firewall rule and try to fix nvidia driver loading issue
This commit is contained in:
parent
8c2dfe9e78
commit
6a2666f47b
1 changed files with 8 additions and 0 deletions
|
|
@ -7,6 +7,8 @@ ENV KERNEL=${KERNEL}
|
|||
# Get list of kernels from my repo. If the list has been updated, then the image will be rebuilt. If it hasn't been updated, then caching of the previous build will be used.
|
||||
ADD "https://copr.fedorainfracloud.org/api_3/build/list?ownername=andersrh&projectname=my-ostree-os&packagename=kernel-cachyos-lto-skylake" /tmp/builds.txt
|
||||
|
||||
RUN dnf upgrade -y
|
||||
|
||||
RUN dnf copr enable -y andersrh/my-ostree-os
|
||||
|
||||
RUN dnf install --nogpgcheck -y https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm
|
||||
|
|
@ -24,6 +26,12 @@ RUN dnf remove -y kernel kernel-core kernel-modules kernel-modules-core kernel-m
|
|||
RUN dnf install -y dkms-nvidia nvidia-driver nvidia-persistenced opencl-filesystem libva-nvidia-driver
|
||||
RUN sed -i -e 's/kernel-open$/kernel/g' /etc/nvidia/kernel.conf
|
||||
RUN dkms install nvidia/$(ls /usr/src/ | grep nvidia- | cut -d- -f2-) -k $(rpm -q --queryformat "%{VERSION}-%{RELEASE}.%{ARCH}\n" ${KERNEL})
|
||||
RUN echo 'omit_drivers+=" nouveau "' | sudo tee /etc/dracut.conf.d/blacklist-nouveau.conf
|
||||
RUN dracut --regenerate-all --force
|
||||
RUN depmod -a
|
||||
|
||||
# Allow connections to KDEConnect
|
||||
RUN firewall-cmd --permanent --zone=public --add-service=kdeconnect
|
||||
|
||||
RUN rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
|
||||
bootc container lint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue