Commit f4df78c
committed
mount-tee-partition: add systemd service to format persist
QTEE requires a valid filesystem on the persist partition mounted at
`/var/lib/tee` to store encrypted data. If the persist partition is
unformatted, the mount fails and dependent services such as
qtee_supplicant cannot function.
Add a systemd oneshot service that checks for an existing filesystem on
the persist partition and formats it as ext4 when missing. The service
runs once during early boot, before var-lib-tee.mount, to ensure a valid
filesystem is available at `/var/lib/tee`, and disables itself after
successful execution.
Signed-off-by: Viswanath Kraleti <viswanath.kraleti@oss.qualcomm.com>1 parent fc5802d commit f4df78c
File tree
2 files changed
+35
-2
lines changed- recipes-bsp/partition
- mount-tee-partition
2 files changed
+35
-2
lines changedLines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| 24 | + | |
| 25 | + | |
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
25 | | - | |
| 30 | + | |
0 commit comments