balena-supervisor/test/unit/lib
Christina Ying Wang 49ee1042a8 Mount boot partition into container on Supervisor start
As the Supervisor is a privileged container, it has access to host /dev, and therefore has access
to boot, data, and state balenaOS partitions. This commit sets up the framework for the following:

- Finds the /dev partition that corresponds to each partition based on partition label
- Mounts the partitions into set mountpoints in the device
- Removes reliance on env vars and mountpoints provided by host's start-balena-supervisor script
- Simplifies host path querying by centralizing these queries through methods in lib/host-utils.ts

This particular changes env vars for and mounts the boot partition.

Since the Supervisor would no longer rely on container `run` arguments provided by a host script,
this change moves Supervisor closer to being able to start itself (Supervisor-as-an-app).

Change-type: minor
Signed-off-by: Christina Ying Wang <christina@balena.io>
2023-03-27 12:07:01 -07:00
..
backoff.spec.ts Create test/unit and test/integration folders 2022-08-24 14:28:36 -04:00
conversions.spec.ts Migrate simple legacy tests to test/unit and test/integration 2022-10-18 20:36:53 -03:00
fs-utils.spec.ts Mount boot partition into container on Supervisor start 2023-03-27 12:07:01 -07:00
journald.spec.ts Support since and until in supervisor journalctl wrapper API. 2023-02-01 09:17:10 +01:00
json.spec.ts Create test/unit and test/integration folders 2022-08-24 14:28:36 -04:00
system-info.spec.ts Always lower case the cpu id to avoid bouncing between casing when reporting 2023-02-15 13:54:40 +00:00
update-lock.spec.ts Migrate update-lock tests as integration tests 2022-09-28 10:37:41 -03:00
validation.spec.ts Allow using colon character in config vars 2023-01-20 15:48:32 -03:00