Best Practice for building modules and including them in Kernel Snap
Oliver Grawert
ogra at ubuntu.com
Mon Mar 20 12:33:44 UTC 2017
hi,
On Mi, 2017-03-15 at 12:29 -0700, Luke Williams wrote:
> Hello,
>
> What are the best practices for building and including kernel modules
> with
> 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
> I
> needed to add custom modules, I could put them in this path and then
> run
> depmod -a -b parts/kernel/install/ <kernel.ver> and it would update
> the
> modules dependancies and symbols and then I could run snapcraft snap
> and
> 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
> and
> then run snapcraft snap and everything is good.
>
> This seems kind of kludgy and not the right way to do this. Is there
> a
> recommended way that this should be handled?
>
>
i suspect the symlink is the best workaround today unless you want to
patch depmod :)
ciao
oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170320/cc0550ed/attachment.sig>
More information about the Snapcraft
mailing list