Skip to content

Commit

Permalink
feat: Add VirtualBox kmod (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeCantCU authored Dec 27, 2023
1 parent 72f3a16 commit d8f2930
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions Containerfile.common
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ RUN if grep -qv "surface" <<< "${KERNEL_FLAVOR}"; then \
/tmp/build-kmod-openrazer.sh && \
/tmp/build-kmod-ryzen-smu.sh && \
/tmp/build-kmod-v4l2loopback.sh && \
/tmp/build-kmod-VirtualBox.sh && \
/tmp/build-kmod-wl.sh && \
/tmp/build-kmod-xpadneo.sh && \
/tmp/build-kmod-xpad-noone.sh && \
Expand Down
15 changes: 15 additions & 0 deletions build-kmod-VirtualBox.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

set -oeux pipefail

ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
RELEASE="$(rpm -E '%fedora')"


### BUILD VirtualBox (succeed or fail-fast with debug output)
rpm-ostree install \
akmod-VirtualBox-*.fc${RELEASE}.${ARCH}
akmods --force --kernels "${KERNEL}" --kmod VirtualBox
modinfo /usr/lib/modules/${KERNEL}/extra/VirtualBox/{vboxdrv,vboxnetadp,vboxnetflt}.ko.xz > /dev/null \
|| (find /var/cache/akmods/VirtualBox/ -name \*.log -print -exec cat {} \; && exit 1)

0 comments on commit d8f2930

Please sign in to comment.