Best Practice for building modules and including them in Kernel Snap
ogra at ubuntu.com
Mon Mar 20 12:33:44 UTC 2017
On Mi, 2017-03-15 at 12:29 -0700, Luke Williams wrote:
> What are the best practices for building and including kernel modules
> kernel snaps?
> Prior to snapcraft 2.25, when building kernel snaps, the modules
> would be
> located in parts/kernel/install/lib/modules/<kernel.ver>/ so that if
> needed to add custom modules, I could put them in this path and then
> depmod -a -b parts/kernel/install/ <kernel.ver> and it would update
> modules dependancies and symbols and then I could run snapcraft snap
> package everything up.
> Now that the modules and firmware directories fall under
> parts/kernel/install the depmod -b doesn't work anymore.
> What I have done to make this work is I create a symlink to install
> as lib
> and then I can run the depmod command, then I remove the lib symlink
> then run snapcraft snap and everything is good.
> This seems kind of kludgy and not the right way to do this. Is there
> recommended way that this should be handled?
i suspect the symlink is the best workaround today unless you want to
patch depmod :)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: This is a digitally signed message part
More information about the Snapcraft