Rework base image above fedora kinoite
All checks were successful
build-ublue-custom / Build and push image (push) Successful in 8m50s
All checks were successful
build-ublue-custom / Build and push image (push) Successful in 8m50s
This commit is contained in:
parent
26f94742c5
commit
872aecc2d5
6 changed files with 31 additions and 26 deletions
|
@ -1,7 +1,9 @@
|
|||
FROM ghcr.io/ublue-os/bazzite-nvidia-open:latest
|
||||
ARG FEDORA_MAJOR_VERSION=40
|
||||
|
||||
COPY build.sh /tmp/build.sh
|
||||
FROM quay.io/fedora-ostree-desktops/kinoite:${FEDORA_MAJOR_VERSION}
|
||||
|
||||
COPY scripts /tmp/scripts
|
||||
|
||||
RUN mkdir -p /var/lib/alternatives && \
|
||||
/tmp/build.sh && \
|
||||
/tmp/scripts/build.sh && \
|
||||
ostree container commit
|
||||
|
|
23
build.sh
23
build.sh
|
@ -1,23 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -ouex pipefail
|
||||
|
||||
RELEASE="$(rpm -E %fedora)"
|
||||
|
||||
|
||||
### Install packages
|
||||
|
||||
# Packages can be installed from any enabled yum repo on the image.
|
||||
# RPMfusion repos are available by default in ublue main images
|
||||
# List of rpmfusion packages can be found here:
|
||||
# https://mirrors.rpmfusion.org/mirrorlist?path=free/fedora/updates/39/x86_64/repoview/index.html&protocol=https&redirect=1
|
||||
|
||||
# this installs a package from fedora repos
|
||||
rpm-ostree install screen
|
||||
|
||||
# this would install a package from rpmfusion
|
||||
# rpm-ostree install vlc
|
||||
|
||||
#### Example for enabling a System Unit File
|
||||
|
||||
systemctl enable podman.socket
|
6
scripts/build.sh
Executable file
6
scripts/build.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
set -ouex pipefail
|
||||
|
||||
export RELEASE="$(rpm -E %fedora)"
|
||||
|
||||
/tmp/scripts/nvidia/install.sh
|
15
scripts/nvidia/install.sh
Executable file
15
scripts/nvidia/install.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
# RELEASE var is defined in build.sh script
|
||||
|
||||
set -ouex pipefail
|
||||
|
||||
rpm-ostree install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$RELEASE.noarch.rpm \
|
||||
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$RELEASE.noarch.rpm
|
||||
|
||||
# see https://rpmfusion.org/Howto/NVIDIA#Kernel_Open
|
||||
rpm-ostree install rpmfusion-nonfree-release-tainted
|
||||
|
||||
rpm-ostree install akmod-nvidia-open xorg-x11-drv-nvidia-cuda libva-nvidia-driver \
|
||||
nvidia-vaapi-driver libva-utils vdpauinfo xorg-x11-drv-nvidia-cuda-libs
|
||||
|
||||
cp /tmp/scripts/nvidia/modprobe.d/*.conf /etc/modprobe.d/
|
1
scripts/nvidia/modprobe.d/nouveau-blacklist.conf
Normal file
1
scripts/nvidia/modprobe.d/nouveau-blacklist.conf
Normal file
|
@ -0,0 +1 @@
|
|||
blacklist nouveau
|
4
scripts/nvidia/modprobe.d/nvidia-modeset.conf
Normal file
4
scripts/nvidia/modprobe.d/nvidia-modeset.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Nvidia modesetting support. Set to 0 or comment to disable kernel modesetting
|
||||
# support. This must be disabled in case of Mosaic or SLI.
|
||||
|
||||
options nvidia-drm modeset=1 fbdev=1
|
Loading…
Reference in a new issue