liquidmetal-dev / image-builder

Image building for Weaveworks Liquid Metal projects.
Mozilla Public License 2.0
19 stars 10 forks source link

Install kernel headers as part of image building for flintlock-kernel `5.10.77` #39

Closed nikimanoledaki closed 1 year ago

nikimanoledaki commented 2 years ago

I tried to install kernel headers by following this tutorial.

Since this kernel is custom, there were no results when searching for headers for 5.10.77 :

apt search linux-headers-$(uname -r)
Sorting... Done
Full Text Search... Done 

This leads to an error when trying to install headers for 5.10.77:

apt install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-5.10.77
E: Couldn't find any package by glob 'linux-headers-5.10.77'

~Is this something that the images could support or is it out of scope? Any help would be appreciated, thank you :)~

nikimanoledaki commented 2 years ago

This might be possible by adding make headers_install after this line :)

see: https://www.kernel.org/doc/Documentation/kbuild/headers_install.txt

Callisto13 commented 1 year ago

We are making changes so that the kernel binary and modules are supplied as additional volumes and mounted in. They will no longer be part of the OS image chain.

So in future if you want extra things you can build an image containing just those things and have it mounted in at the location you need.

Closing