From d153ad5432b3543dd05f899af44198a915a4578d Mon Sep 17 00:00:00 2001 From: Tau Date: Fri, 17 Jan 2025 20:48:55 +0000 Subject: [PATCH] writes kernel version to file This is needed for dynamically adding dkms modules. --- modules/02-kernel-version-file.yml | 5 +++++ recipe.yml | 1 + 2 files changed, 6 insertions(+) create mode 100644 modules/02-kernel-version-file.yml diff --git a/modules/02-kernel-version-file.yml b/modules/02-kernel-version-file.yml new file mode 100644 index 0000000..e86362b --- /dev/null +++ b/modules/02-kernel-version-file.yml @@ -0,0 +1,5 @@ +name: kernel-version-file +type: shell +commands: + - mkdir -p /usr/share/vanilla + - echo "$(ls -1 /usr/lib/modules | head -n 1)" > /usr/share/vanilla/kernel-version diff --git a/recipe.yml b/recipe.yml index 1c826e4..438ef5c 100644 --- a/recipe.yml +++ b/recipe.yml @@ -29,6 +29,7 @@ stages: - modules/00-vanilla-apx.yml - modules/00-vanilla-apx-stacks.yml - modules/01-kernel.yml + - modules/02-kernel-version-file.yml - modules/03-fswarn.yml - modules/05-firmware.yml - modules/10-input-and-locale.yml