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

Commit

Permalink
feat: Install asus kernel and asusctl
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeCantCU committed Sep 23, 2023
1 parent 2b858e1 commit 7154675
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ COPY asus-install.sh /tmp/asus-install.sh
COPY asus-packages.json /tmp/asus-packages.json

# Remove Deck services when building for Ally
RUN if grep -q "deck" <<< ${BASE_IMAGE_NAME}; then
RUN if grep -q "deck" <<< ${BASE_IMAGE_NAME}; then \
systemctl disable jupiter-fan-control.service && \
systemctl disable jupiter-biosupdate.service && \
systemctl disable jupiter-controller-update.service && \
Expand All @@ -26,9 +26,24 @@ RUN if grep -q "deck" <<< ${BASE_IMAGE_NAME}; then
powerbuttond \
vpower \
sdgyrodsu && \
rm -rf /usr/lib/jupiter-dock-updater
rm -rf /usr/lib/jupiter-dock-updater \
; fi

# Add Copr magic
RUN 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 && \
wget https://copr.fedorainfracloud.org/coprs/lukenukem/asus-kernel/repo/fedora-$(rpm -E %fedora)/lukenukem-asus-kernel-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_lukenukem-asus-kernel.repo

# Install Asus kernel
RUN rpm-ostree override replace \
--experimental \
--from repo=copr:copr.fedorainfracloud.org:lukenukem:asus-kernel \
kernel \
kernel-core \
kernel-modules \
kernel-modules-core \
kernel-modules-extra \
kernel-uki-virt

# Setup things which are the same for every image
RUN /tmp/asus-install.sh && \
rm -rf /tmp/* /var/* && \
Expand Down
1 change: 1 addition & 0 deletions asus-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"all": {
"include": {
"all": [
"asusctl",
"fprintd"
]
},
Expand Down

0 comments on commit 7154675

Please sign in to comment.