Skip to content

Commit

Permalink
Remove RPMs after installing kernel module
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo committed Sep 26, 2024
1 parent cf18f0e commit e6307a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
6 changes: 4 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@ COPY --from=ghcr.io/ublue-os/akmods-extra:fsync-40 /rpms/ /tmp/rpms
# Install EVDI kernel module
RUN curl -o /etc/yum.repos.d/fedora-multimedia.repo https://negativo17.org/repos/fedora-multimedia.repo \
&& find /tmp/rpms \
&& rpm-ostree install /tmp/rpms/kmods/kmod-evdi*.rpm
&& rpm-ostree install /tmp/rpms/kmods/kmod-evdi*.rpm \
&& rm -rf /tmp/rpms

COPY build.sh /tmp/build.sh

RUN mkdir -p /var/lib/alternatives && \
/tmp/build.sh && \
ostree container commit



## NOTES:
# - /var/lib/alternatives is required to prevent failure with some RPM installs
# - All RUN commands must end with ostree container commit
Expand Down

0 comments on commit e6307a3

Please sign in to comment.