Custom kickstart file (.wks)

Hello,

I would like to customize my .wks file. For example to add a /data partition separated from my rootfs, so that device specific data remains after a rootfs update.

This works fine when I edit directly meta-solidrun-arm-imx8/wic/imx-boot-bootpart-distro.wks.in and recompile my image.

But now, I’m struggling to override this file from my own layer (or local.conf). As far as I understand, I have to override WKS_FILE (or may be WKS_FILE:imx8mp-sr-som?) from either my local.conf or my image.bb. But, when doing so, the build system doesn’t find my own .wks.in file.

So my questions:

  • Am I doing wrong?
  • Where should I put my customized .wks.in file?

For the record, I thought that I tested that before, but I eventually managed to compile my image with my own mine.wks.in in file. For that I:

  • added WKS_FILE:imx8mp-sr-som = "mine.wks.in" to my layer’s build.conf
  • added my mine.wks.in file in the wic directory at the root of my layer directory

Don’t hesitate to tell me if there is a cleaner way to to it, but at least my problem is solved.

My guess is your layer is not prioritized on top of the other layers, which may be causing the problem. Regardless your solution is an acceptable workaround, and shouldn’t cause any problems.

Thanks!