Commit 5dbe66da authored by intrigeri's avatar intrigeri
Browse files

Ensure the VirtualBox guest DKMS modules are built for the kernel we want them for (refs: #12139).

In some situations, depending on the version of the running kernel, the modules
would not be built for the 686 kernel, which is the one that needs the
VirtualBox guest modules.

This commit ensures the VirtualBox guest modules are built and installed
regardless of the how the build environment looks like.
parent 7bcede91
......@@ -25,6 +25,15 @@ apt-get install --yes \
"linux-headers-${KERNEL_VERSION}-686" \
MODULES_VERSION="$(dpkg-query -W -f='${Version}\n' virtualbox-guest-dkms \
| sed -E 's,-.*,,')"
dkms build \
-a i386 -k "${KERNEL_VERSION}-686" \
-m virtualbox-guest -v "$MODULES_VERSION"
dkms install \
-a i386 -k "${KERNEL_VERSION}-686" \
-m virtualbox-guest -v "$MODULES_VERSION"
# clean the build directory
rm -r /var/lib/dkms/virtualbox-guest/
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment