diff --git a/Containerfile b/Containerfile index 8bcfd623..152a5d96 100644 --- a/Containerfile +++ b/Containerfile @@ -52,6 +52,16 @@ RUN wget https://copr.fedorainfracloud.org/coprs/sentry/kernel-fsync/repo/fedora kernel-modules-extra \ kernel-uki-virt +# Setup firmware and asusctl for ASUS devices +RUN if [[ "${IMAGE_FLAVOR}" =~ "asus" ]]; then \ + wget https://copr.fedorainfracloud.org/coprs/lukenukem/asus-linux/repo/fedora-$(rpm -E %fedora)/lukenukem-asus-linux-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_lukenukem-asus-linux.repo && \ + rpm-ostree install \ + asusctl && \ + 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 \ + ; fi + # Add ublue packages, add needed negativo17 repo and then immediately disable due to incompatibility with RPMFusion COPY --from=ghcr.io/ublue-os/akmods:${AKMODS_FLAVOR}-${FEDORA_MAJOR_VERSION} /rpms /tmp/akmods-rpms RUN sed -i 's@enabled=0@enabled=1@g' /etc/yum.repos.d/_copr_ublue-os-akmods.repo && \