Skip to content

Commit

Permalink
disable rpmfusion and use proper FROM
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman committed Oct 4, 2024
1 parent 3048fb5 commit 2d091d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ FROM ghcr.io/${SOURCE_ORG}/${KERNEL_FLAVOR}-kernel:${KERNEL_VERSION} AS kernel
FROM scratch AS ctx
COPY / /

#FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS main
FROM git.shermanclan.net/bsherman/silverblue-main-neg17:${FEDORA_MAJOR_VERSION} AS main
FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS main

ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-40}"
ARG KERNEL_FLAVOR="${KERNEL_FLAVOR:-main}"
Expand Down
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ if [ "${KERNEL_FLAVOR}" = "main" ]; then
exit 0
fi

# disable any remaining rpmfusion repos
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/rpmfusion*.repo

# do HWE specific things
if [ "${KERNEL_FLAVOR}" = "asus" ]; then
echo "install.sh: steps for KERNEL_FLAVOR: ${KERNEL_FLAVOR}"
Expand Down
5 changes: 4 additions & 1 deletion nvidia-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -ouex pipefail

RELEASE="$(rpm -E %fedora)"

# disable any remaining rpmfusion repos
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/rpmfusion*.repo

sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/fedora-cisco-openh264.repo

## nvidia install steps
Expand All @@ -13,7 +16,7 @@ rpm-ostree install /tmp/akmods-rpms/ublue-os/ublue-os-nvidia-addons-*.rpm
sed -i '0,/enabled=0/{s/enabled=0/enabled=1/}' /etc/yum.repos.d/eyecantcu-supergfxctl.repo
sed -i '0,/enabled=0/{s/enabled=0/enabled=1/}' /etc/yum.repos.d/nvidia-container-toolkit.repo
#NOTE: nvidia drivers are already provided by negativo17-fedora-multimedia.repo, no need to enable
#sed -i '0,/enabled=0/{s/enabled=0/enabled=1/}' /etc/yum.repos.d/negativo17-fedora-nvidia.repo
sed -i '0,/enabled=0/{s/enabled=0/enabled=1/}' /etc/yum.repos.d/negativo17-fedora-nvidia.repo

source /tmp/akmods-rpms/kmods/nvidia-vars

Expand Down

0 comments on commit 2d091d5

Please sign in to comment.