build for specific kernel version
This commit is contained in:
parent
54b7d7ffa9
commit
4a5a2791a8
2 changed files with 12 additions and 4 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -12,8 +12,12 @@ wget https://copr.fedorainfracloud.org/coprs/bieszczaders/kernel-cachyos-addons/
|
|||
|
||||
RUN dnf -y install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
||||
|
||||
ARG CACHEBUST=0
|
||||
|
||||
RUN dnf -y install kernel-cachyos-lts kernel-cachyos-lts-headers kernel-cachyos-lts-devel akmod-nvidia
|
||||
RUN akmods --force
|
||||
|
||||
COPY akmods.sh /tmp/akmods.sh
|
||||
RUN /tmp/akmods.sh
|
||||
|
||||
|
||||
FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS builder
|
||||
|
|
@ -56,10 +60,9 @@ rpm-ostree install kata-containers && \
|
|||
# add bore-sysctl
|
||||
rpm-ostree install bore-sysctl && \
|
||||
# install Apple HFS+ tools
|
||||
rpm-ostree install hfsplus-tools
|
||||
|
||||
rpm-ostree install hfsplus-tools && \
|
||||
# install Nvidia driver
|
||||
RUN ls /tmp/nvidia && /tmp/install-nvidia.sh && rpm-ostree install xorg-x11-drv-nvidia-cuda nvidia-vaapi-driver nvidia-persistenced opencl-filesystem && \
|
||||
ls /tmp/nvidia && /tmp/install-nvidia.sh && rpm-ostree install xorg-x11-drv-nvidia-cuda nvidia-vaapi-driver nvidia-persistenced opencl-filesystem && \
|
||||
# install Mullvad VPN
|
||||
mkdir /var/opt && rpm-ostree install https://mullvad.net/da/download/app/rpm/latest && \
|
||||
mv "/opt/Mullvad VPN" /usr/lib/opt/ && \
|
||||
|
|
|
|||
5
akmods.sh
Executable file
5
akmods.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
KERNEL_VERSION="$(rpm -q kernel-cachyos-lts --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
|
||||
|
||||
akmods --force --kernels "${KERNEL_VERSION}" --kmod "nvidia"
|
||||
Loading…
Add table
Add a link
Reference in a new issue