Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
🐳 chore(*): Include openrazer driver in the OS image
Browse files Browse the repository at this point in the history
  • Loading branch information
c0deplayer committed Sep 28, 2023
1 parent f5854d6 commit 41f37db
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ COPY cosign.pub /usr/share/ublue-os/cosign.pub
COPY --from=ghcr.io/ublue-os/bling:latest /rpms /tmp/bling/rpms
COPY --from=ghcr.io/ublue-os/bling:latest /files /tmp/bling/files

# Copy the akmods from ublue-os/akmods into tmp, to be installed later
COPY --from=ghcr.io/ublue-os/akmods:${IMAGE_MAJOR_VERSION} /rpms/ /tmp/akmods/rpms

# Copy build scripts & configuration
COPY build.sh /tmp/build.sh
COPY config /tmp/config/
Expand Down
3 changes: 2 additions & 1 deletion config/recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ modules:
repos:
- https://download.opensuse.org/repositories/hardware:/razer/Fedora_%OS_VERSION%/hardware:razer.repo
install:
- openrazer-meta
- polychromatic
remove:
- firefox
- firefox-langpacks
Expand All @@ -44,4 +44,5 @@ modules:

- type: script
scripts:
- openrazer.sh
- signing.sh
12 changes: 12 additions & 0 deletions config/scripts/openrazer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -oue pipefail

# Only run if OS_VERSION is not 39
if grep -qv "39" <<< "$OS_VERSION"; then
rpm-ostree install \
kernel-devel-matched \
kernel-tools \
/tmp/akmods/rpms/kmods/*openrazer*.rpm \
/tmp/akmods/rpms/kmods/*openrgb*.rpm
fi

0 comments on commit 41f37db

Please sign in to comment.