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

Commit

Permalink
feat: Add akmods from main
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo authored and EyeCantCU committed Sep 26, 2023
1 parent 2c42db7 commit bed039a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,26 @@ RUN rpm-ostree cliwrap install-to-root / && \
kernel-core \
kernel-modules \
kernel-modules-core \
kernel-modules-extra && \
kernel-modules-extra \
kernel-devel-matched && \
git clone https://gitlab.com/asus-linux/firmware.git --depth 1 /tmp/asus-firmware && \
cp -rf /tmp/asus-firmware/* /usr/lib/firmware/ && \
rm -rf /tmp/asus-firmware

# Install akmods
COPY --from=ghcr.io/ublue-os/akmods:asus-${FEDORA_MAJOR_VERSION} /rpms /tmp/akmods-rpms
# Only run if FEDORA_MAJOR_VERSION is not 39
RUN if [ ${FEDORA_MAJOR_VERSION} -lt 39 ]; then \
rpm-ostree install \
kernel-tools \
/tmp/akmods-rpms/kmods/*xpadneo*.rpm \
/tmp/akmods-rpms/kmods/*xpad-noone*.rpm \
/tmp/akmods-rpms/kmods/*xone*.rpm \
/tmp/akmods-rpms/kmods/*openrazer*.rpm \
/tmp/akmods-rpms/kmods/*v4l2loopback*.rpm \
/tmp/akmods-rpms/kmods/*wl*.rpm; \
fi

# Setup things which are the same for every image
RUN /tmp/image-info.sh && \
/tmp/asus-install.sh && \
Expand Down

0 comments on commit bed039a

Please sign in to comment.