From 4abd8b960cd542e5cc085da91a93659a0c964ed2 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Fri, 17 Sep 2021 16:31:45 +0200 Subject: [PATCH] DataDisk feature (#1056) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * DataDisk feature * Apply suggestions from code review Co-authored-by: Joakim Sørensen Co-authored-by: Paulus Schoutsen Co-authored-by: Joakim Sørensen Co-authored-by: Paulus Schoutsen --- docs/api/supervisor/endpoints.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/api/supervisor/endpoints.md b/docs/api/supervisor/endpoints.md index e5ce36ce..c08ac11a 100644 --- a/docs/api/supervisor/endpoints.md +++ b/docs/api/supervisor/endpoints.md @@ -1799,6 +1799,7 @@ Returns information about the OS. | update_available | boolean | `true` if an update is available | | board | string | The name of the board | | boot | string | Which slot that are in use | +| data_disk | string | Device which is used for holding OS data persistent | **Example response:** @@ -1806,8 +1807,10 @@ Returns information about the OS. { "version": "4.3", "version_latest": "5.0", + "update_available": true, "board": "ova", - "boot": "slot1" + "boot": "slot1", + "data_disk": "/dev/sda" } ``` @@ -1823,6 +1826,18 @@ Update Home Assistant OS | ------- | ------ | -------------------------------------------------------------- | | version | string | The version you want to install, default is the latest version | + + + + +Move datadisk to a new location, **This will also reboot the device!** + +**Payload:** + +| key | type | description | +| ------- | ------ | ----------------------------------------------------------------- | +| device | string | Path to the new device which should be use as the target for the data migration | + ### Resolution