Compare commits

..

2 Commits

Author SHA1 Message Date
5f6ce460ec FIX: nvidia driver 2025-11-24 12:37:39 +01:00
2a5b0f48b0 FIX: don't install weak dependencies on update 2025-11-24 12:37:23 +01:00
2 changed files with 10 additions and 14 deletions

View File

@@ -1,16 +1,14 @@
FROM scratch AS ctx FROM scratch AS ctx
COPY build_files / COPY build_files /
FROM ghcr.io/ublue-os/akmods-nvidia-open:main-43 AS nvidia-kernel FROM ghcr.io/ublue-os/akmods-nvidia:main-43 AS nvidia
FROM ghcr.io/bazzite-org/nvidia-drivers:latest-f43-x86_64 AS nvidia-packages
FROM quay.io/fedora/fedora-bootc:43 FROM ghcr.io/ublue-os/base-main:43
RUN rm -r /opt && mkdir /opt RUN rm -r /opt && mkdir /opt
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \ RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=bind,from=nvidia-kernel,source=/,target=/nvidia-kernel \ --mount=type=bind,from=nvidia,source=/,target=/nvidia \
--mount=type=bind,from=nvidia-packages,src=/,dst=/nvidia-packages \
--mount=type=cache,dst=/var/cache \ --mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \ --mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \ --mount=type=tmpfs,dst=/tmp \

View File

@@ -4,7 +4,7 @@ set -ouex pipefail
cp /ctx/bootc-fetch-apply-updates.service /usr/lib/systemd/system/bootc-fetch-apply-updates.service cp /ctx/bootc-fetch-apply-updates.service /usr/lib/systemd/system/bootc-fetch-apply-updates.service
cp /ctx/os-release /usr/lib/os-release cp /ctx/os-release /usr/lib/os-release
dnf5 update -y dnf5 update -y --setopt=install_weak_deps=False
dnf5 install -y man-pages man-db glibc-langpack-en glibc-langpack-de plymouth dnf5 install -y man-pages man-db glibc-langpack-en glibc-langpack-de plymouth
dnf5 install -y --setopt=exclude=gnome-tour,malcontent-control gnome-shell gnome-keyring gnome-keyring-pam gnome-bluetooth gnome-terminal nautilus seahorse evolution totem gstreamer1-plugin-libav gnome-extensions-app gnome-browser-connector gnome-shell-extension-appindicator dnf5 install -y --setopt=exclude=gnome-tour,malcontent-control gnome-shell gnome-keyring gnome-keyring-pam gnome-bluetooth gnome-terminal nautilus seahorse evolution totem gstreamer1-plugin-libav gnome-extensions-app gnome-browser-connector gnome-shell-extension-appindicator
dnf5 install -y gnome-calculator gnome-disk-utility gnome-backgrounds dnf5 install -y gnome-calculator gnome-disk-utility gnome-backgrounds
@@ -28,15 +28,13 @@ dnf5 install -y --allowerasing ffmpeg x265-libs
# https://rpmfusion.org/Howto/NVIDIA # https://rpmfusion.org/Howto/NVIDIA
# https://www.tecmint.com/install-nvidia-drivers-in-linux # https://www.tecmint.com/install-nvidia-drivers-in-linux
# https://github.com/ublue-os/akmods # https://github.com/ublue-os/akmods
# https://github.com/ublue-os/bazzite
# https://github.com/Comprehensive-Wall28/Nvidia-Fedora-Guide # https://github.com/Comprehensive-Wall28/Nvidia-Fedora-Guide
# this is a combination of bazzite & ublue-os nvidia installation # following ublue-os nvidia installation
# there is probably a better way to do it, but this works (I hope) dnf5 install -y xorg-x11-drv-nvidia-cuda # xorg-x11-drv-nvidia
dnf install -y \
/nvidia-kernel/rpms/ublue-os/ublue-os-nvidia*.rpm \ dnf5 install -y \
/nvidia-kernel/rpms/kmods/kmod-nvidia*.rpm \ /nvidia/rpms/ublue-os/ublue-os-nvidia*.rpm \
/nvidia-packages/nvidia-kmod-common-* \ /nvidia/rpms/kmods/kmod-nvidia*.rpm \
/nvidia-packages/nvidia-modprobe-5*
dnf5 remove -y rpmfusion-free-release rpmfusion-nonfree-release dnf5 remove -y rpmfusion-free-release rpmfusion-nonfree-release
dnf5 clean all dnf5 clean all