Allow patching the module
Example conf:
target-conf:
kernel:
modules:
modules:
lisa:
overlays:
main.c: !call:lisa._kmod.PatchOverlay
overlay: !call:lisa._kmod.FileOverlay.from_content
content: "diff --git a/lisa/_assets/kmodules/lisa/main.c b/lisa/_assets/kmodules/lisa/main.c\nindex a3d1b3942..67192ecda 100644\n--- a/lisa/_assets/kmodules/lisa/main.c\n+++ b/lisa/_assets/kmodules/lisa/main.c\n@@ -26,6 +26,7 @@ static void modexit(void) {\n static int __init modinit(void) {\n \tint ret;\n \n+\tpr_info(\"HELLO WORLD!\");\n \tpr_info(\"Loading Lisa module version %s\\n\", LISA_MODULE_VERSION);\n \tif (strcmp(version, LISA_MODULE_VERSION)) {\n \t\tpr_err(\"Lisa module version check failed. Got %s, expected %s\\n\", version, LISA_MODULE_VERSION);\n"
Note the 2 levels of "modules:", this is not a typo