Skip to content

Commit 1f6d6f2

Browse files
authored
fix: install supergfxctl-plasmoid (#121)
Corrects a problem where this was failing to install due to the ublue-os-nvidia-addons RPM disabling the required COPR repo. Fixes #99 again
1 parent 5c716a8 commit 1f6d6f2

File tree

3 files changed

+7
-63
lines changed

3 files changed

+7
-63
lines changed

install.Containerfile

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ COPY --from=${AKMODS_CACHE}:${AKMODS_VERSION}-${NVIDIA_MAJOR_VERSION} / .
1414

1515
COPY install.sh /tmp/install.sh
1616
COPY post-install.sh /tmp/post-install.sh
17-
COPY packages.json /tmp/packages.json
1817
RUN /tmp/install.sh
1918
RUN /tmp/post-install.sh
2019
RUN rm -rf /tmp/* /var/*

install.sh

+7-26
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@ set -ouex pipefail
44

55
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/fedora-{cisco-openh264,modular,updates-modular}.repo
66

7-
INCLUDED_PACKAGES=($(jq -r "[(.all.include | (.all, select(.\"$IMAGE_NAME\" != null).\"$IMAGE_NAME\")[]), \
8-
(select(.\"$FEDORA_MAJOR_VERSION\" != null).\"$FEDORA_MAJOR_VERSION\".include | (.all, select(.\"$IMAGE_NAME\" != null).\"$IMAGE_NAME\")[])] \
9-
| sort | unique[]" /tmp/packages.json))
10-
EXCLUDED_PACKAGES=($(jq -r "[(.all.exclude | (.all, select(.\"$IMAGE_NAME\" != null).\"$IMAGE_NAME\")[]), \
11-
(select(.\"$FEDORA_MAJOR_VERSION\" != null).\"$FEDORA_MAJOR_VERSION\".exclude | (.all, select(.\"$IMAGE_NAME\" != null).\"$IMAGE_NAME\")[])] \
12-
| sort | unique[]" /tmp/packages.json))
13-
14-
if [[ "${#EXCLUDED_PACKAGES[@]}" -gt 0 ]]; then
15-
EXCLUDED_PACKAGES=($(rpm -qa --queryformat='%{NAME} ' ${EXCLUDED_PACKAGES[@]}))
16-
fi
17-
187
install -D /tmp/ublue-os-nvidia-addons/rpmbuild/SOURCES/nvidia-container-runtime.repo \
198
/etc/yum.repos.d/nvidia-container-runtime.repo
209
install -D /tmp/ublue-os-nvidia-addons/rpmbuild/SOURCES/lukenukem-asus-linux.repo \
@@ -24,22 +13,14 @@ install -D /tmp/ublue-os-nvidia-addons/rpmbuild/SOURCES/jhyub-supergfxctl-plasmo
2413

2514
source /var/cache/akmods/nvidia-vars
2615

16+
if [[ "${IMAGE_NAME}" == "kinoite" ]]; then
17+
VARIANT_PKGS="supergfxctl-plasmoid"
18+
else
19+
VARIANT_PKGS=""
20+
fi
21+
2722
rpm-ostree install \
2823
xorg-x11-drv-${NVIDIA_PACKAGE_NAME}-{,cuda-,devel-,kmodsrc-,power-}${NVIDIA_FULL_VERSION} \
29-
nvidia-container-toolkit nvidia-vaapi-driver supergfxctl \
24+
nvidia-container-toolkit nvidia-vaapi-driver supergfxctl ${VARIANT_PKGS} \
3025
/var/cache/akmods/${NVIDIA_PACKAGE_NAME}/kmod-${NVIDIA_PACKAGE_NAME}-${KERNEL_VERSION}-${NVIDIA_AKMOD_VERSION}.fc${RELEASE}.rpm \
3126
/tmp/ublue-os-nvidia-addons/rpmbuild/RPMS/noarch/ublue-os-nvidia-addons-*.rpm
32-
33-
if [[ "${#INCLUDED_PACKAGES[@]}" -gt 0 && "${#EXCLUDED_PACKAGES[@]}" -eq 0 ]]; then
34-
rpm-ostree install \
35-
${INCLUDED_PACKAGES[@]}
36-
elif [[ "${#INCLUDED_PACKAGES[@]}" -eq 0 && "${#EXCLUDED_PACKAGES[@]}" -gt 0 ]]; then
37-
rpm-ostree override remove \
38-
${EXCLUDED_PACKAGES[@]}
39-
elif [[ "${#INCLUDED_PACKAGES[@]}" -gt 0 && "${#EXCLUDED_PACKAGES[@]}" -gt 0 ]]; then
40-
rpm-ostree override remove \
41-
${EXCLUDED_PACKAGES[@]} \
42-
$(printf -- "--install=%s " ${INCLUDED_PACKAGES[@]})
43-
else
44-
echo "No packages to install."
45-
fi

packages.json

-36
This file was deleted.

0 commit comments

Comments
 (0)