From 660413ad80ebefc3403c0524ff401f2fb6cf8877 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Thu, 5 Oct 2023 14:53:20 -0300 Subject: [PATCH] feat!: introduce machine init and entrypoint config and options --- lib/grpc-interfaces | 2 +- src/cartesi-machine.lua | 182 ++++++++++++++++++++++++++++++++++--- src/clua-machine-util.cpp | 8 ++ src/dtb.cpp | 2 + src/fdt-builder.h | 5 + src/json-util.cpp | 4 + src/jsonrpc-discover.json | 6 ++ src/machine-c-api.cpp | 6 ++ src/machine-c-api.h | 2 + src/machine-config.h | 2 + src/protobuf-util.cpp | 4 + src/test-machine-c-api.cpp | 7 +- src/tests/machine-bind.lua | 2 + 13 files changed, 215 insertions(+), 17 deletions(-) diff --git a/lib/grpc-interfaces b/lib/grpc-interfaces index 4ec6e6620..de85ec68a 160000 --- a/lib/grpc-interfaces +++ b/lib/grpc-interfaces @@ -1 +1 @@ -Subproject commit 4ec6e6620abce44048b9a8493124683ef15e0731 +Subproject commit de85ec68a10fded1da7dfa215351603764ad3f76 diff --git a/src/cartesi-machine.lua b/src/cartesi-machine.lua index 210d300f8..7a8c8517f 100755 --- a/src/cartesi-machine.lua +++ b/src/cartesi-machine.lua @@ -97,6 +97,8 @@ where options are: start: length: shared + mount: + user: label (mandatory) identifies the flash drive. init attempts to mount it as /mnt/