diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2019-10-10 13:49:50 +0200 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2019-10-21 12:06:01 +0200 |
commit | 44d375e35b3dba64c1309775c4738916c5e1135b (patch) | |
tree | 86e347efc2b51c69edd2ba72d4053eff3fd3fba0 /recipes-sota/config/files | |
parent | 8bf95a97e5605639e513321548ffab10cbca1684 (diff) | |
download | meta-updater-44d375e35b3dba64c1309775c4738916c5e1135b.tar.gz |
Example config for a virtual secondary.
Useful for updating an arbitrary file in /var.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Diffstat (limited to 'recipes-sota/config/files')
-rw-r--r-- | recipes-sota/config/files/30-virtualsec.toml | 3 | ||||
-rw-r--r-- | recipes-sota/config/files/virtualsec.json | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/recipes-sota/config/files/30-virtualsec.toml b/recipes-sota/config/files/30-virtualsec.toml new file mode 100644 index 0000000..987f692 --- /dev/null +++ b/recipes-sota/config/files/30-virtualsec.toml | |||
@@ -0,0 +1,3 @@ | |||
1 | [uptane] | ||
2 | secondary_config_file = "/usr/lib/sota/virtualsec.json" | ||
3 | |||
diff --git a/recipes-sota/config/files/virtualsec.json b/recipes-sota/config/files/virtualsec.json new file mode 100644 index 0000000..dcdcdba --- /dev/null +++ b/recipes-sota/config/files/virtualsec.json | |||
@@ -0,0 +1,14 @@ | |||
1 | { | ||
2 | "virtual": [ | ||
3 | { | ||
4 | "partial_verifying": "false", | ||
5 | "ecu_hardware_id": "external-config", | ||
6 | "full_client_dir": "/var/sota/external-config", | ||
7 | "ecu_private_key": "sec.private", | ||
8 | "ecu_public_key": "sec.public", | ||
9 | "firmware_path": "/var/sota/external-config/config.txt", | ||
10 | "target_name_path": "/var/sota/external-config/target_name", | ||
11 | "metadata_path": "/var/sota/external-config/metadata" | ||
12 | } | ||
13 | ] | ||
14 | } | ||