From e0b09233e131cd9330d4d31270c963b24a0ba401 Mon Sep 17 00:00:00 2001 From: axtloss Date: Mon, 1 Jan 2024 16:37:59 +0100 Subject: [PATCH] fix: install kernel headers and specify kernel version --- modules/02-waydroid-modules.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/02-waydroid-modules.yml b/modules/02-waydroid-modules.yml index 20d5440..222cf61 100644 --- a/modules/02-waydroid-modules.yml +++ b/modules/02-waydroid-modules.yml @@ -3,8 +3,8 @@ type: shell commands: - cp -rT /sources/waydroid-modules/binder /usr/src/waydroid-binder-1 - cp -rT /sources/waydroid-modules/ashmem /usr/src/waydroid-ashmem-1 -- dkms install waydroid-binder-1 -- dkms install waydroid-ashmem-1 +- dkms install waydroid-binder-1 -k $(dpkg --list | grep linux-image | grep -Po '[0-9].[0-9].[0-9]' | head -1) +- dkms install waydroid-ashmem-1 -k $(dpkg --list | grep linux-image | grep -Po '[0-9].[0-9].[0-9]' | head -1) source: type: git url: https://github.com/choff/anbox-modules.git @@ -16,3 +16,9 @@ modules: source: packages: - dkms + modules: + - name: dkms-linux-headers + type: shell + commands: + - apt install -y linux-headers-$(dpkg --list | grep linux-image | grep -Po '[0-9].[0-9].[0-9]' | head -1) && apt clean +