balena-supervisor/test/legacy
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
..
.mocharc.js Make dbus module side-effect free to not interfere with unit tests 2022-10-18 14:27:19 -07:00
10-api-binder.spec.ts Enable node16 module resolution in tsconfig to ease the ESM transition 2022-11-22 11:01:03 -03:00
11-logger.spec.ts Enable node16 module resolution in tsconfig to ease the ESM transition 2022-11-22 11:01:03 -03:00
22-local-mode.spec.ts Update @balena/lint to 6.2.0 2022-09-19 16:41:28 +01:00
40-target-state.spec.ts Remove dependent devices content in codebase 2023-02-06 19:34:02 -08:00
42-device-api-v2.spec.ts Use executeServiceAction for v1/v2 service action endpoints 2023-01-09 18:20:24 -08:00
fixtures.ts Mount boot partition into container on Supervisor start 2023-03-27 12:07:01 -07:00