generated from ublue-os/base
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: build nvidia images in main repo #319
Merged
+128
−25
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
73f3616
feat: build nvidia images in main repo
bsherman ac09a20
Merge branch 'main' into build-nvidia-images-in-main
bsherman fd4f500
chore(ci): fix image lables and temp reduce images built
bsherman 3fe9556
chore(ci): temp images built testing
bsherman 4696451
chore(ci): refine tagging script for main+nvidia
bsherman f69daa2
chore(ci): fix copy/paste extra if statements
bsherman 42120b1
chore(ci): add missing closing paren
bsherman a747eb6
chore(ci): retry failed github release
bsherman d62cfbf
chore(ci): restore full list of images built
bsherman 8bbf305
fix: correct target image name
bsherman d25c338
fix: use proper step output for image name
bsherman 305f235
chore(ci): add final check job to simplify expected action checks
bsherman a0896ec
fix(ci): use proper pairing of image_name + image_flavor
bsherman 2aa87a7
chore(ci): switch to buildjet builders
castrojo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
|
||
set -ouex pipefail | ||
|
||
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/fedora-{cisco-openh264,modular,updates-modular}.repo | ||
|
||
rpm-ostree install \ | ||
/tmp/akmods-rpms/ublue-os/ublue-os-nvidia-addons-*.rpm | ||
|
||
source /tmp/akmods-rpms/kmods/nvidia-vars.${NVIDIA_MAJOR_VERSION} | ||
|
||
if [[ "${IMAGE_NAME}" == "kinoite" ]]; then | ||
VARIANT_PKGS="supergfxctl-plasmoid" | ||
elif [[ "${IMAGE_NAME}" == "silverblue" ]]; then | ||
VARIANT_PKGS="gnome-shell-extension-supergfxctl-gex" | ||
else | ||
VARIANT_PKGS="" | ||
fi | ||
|
||
rpm-ostree install \ | ||
xorg-x11-drv-${NVIDIA_PACKAGE_NAME}-{,cuda-,devel-,kmodsrc-,power-}${NVIDIA_FULL_VERSION} \ | ||
nvidia-container-toolkit nvidia-vaapi-driver supergfxctl ${VARIANT_PKGS} \ | ||
/tmp/akmods-rpms/kmods/kmod-${NVIDIA_PACKAGE_NAME}-${KERNEL_VERSION}-${NVIDIA_AKMOD_VERSION}.fc${RELEASE}.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
set -ouex pipefail | ||
|
||
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/{eyecantcu-supergfxctl,nvidia-container-runtime}.repo | ||
|
||
mv /etc/nvidia-container-runtime/config.toml{,.orig} | ||
cp /etc/nvidia-container-runtime/config{-rootless,}.toml | ||
|
||
semodule --verbose --install /usr/share/selinux/packages/nvidia-container.pp | ||
ln -s /usr/bin/ld.bfd /etc/alternatives/ld | ||
ln -s /etc/alternatives/ld /usr/bin/ld | ||
|
||
if [[ "${IMAGE_NAME}" == "sericea" ]]; then | ||
mv /etc/sway/environment{,.orig} | ||
install -Dm644 /usr/share/ublue-os/etc/sway/environment /etc/sway/environment | ||
fi |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Unrelated)
It might be a good idea to bundle these Nvidia install and post-install scripts into the akmods image instead of requiring downstream consumers to copy, paste and keep them maintained.
We can keep them up-to-date in the akmods repo, then if people are consuming the akmods repo rather than main images, they have the scripts bundled with the image to call.