diff options
| author | David Anderson <dvander@google.com> | 2019-08-15 12:50:38 -0700 |
|---|---|---|
| committer | David Anderson <dvander@google.com> | 2019-08-23 14:42:05 -0700 |
| commit | 9267c3f5c4ea3cea7cecaf564766e3b45e6ad132 (patch) | |
| tree | a75dd78fd4b346afbc3dffb9cd3b58c9a0483db5 /libpackagelistparser/packagelistparser_test.cpp | |
| parent | 3bd09415a3f859467fae2b1516ffa3e95431bfa0 (diff) | |
libsnapshot: Add helper for first-stage init mounting
With this patch, init can mount snapshots in the first stage by
performing the following operations:
1. First, check if SnapshotManager::kBootIndicatorPath exists.
2. If so, call SnapshotManager::NewForFirstStageMount.
3. If NeedSnapshotsInFirstStageMount returns true,
4. Call CreateLogicalAndSnapshotPartitions().
When called, this replaces any calls to CreateLogicalPartitions().
Rather than split this into multiple functions (to generate uevents as
needed), we instead use major:minor strings for device-mapper tables.
This means we don't have to wait for paths to resolve.
Bug: 139204329
Test: libsnapshot_test gtest
Change-Id: Ia7ec196a62e51748d6f01a66fe4e9eef25f2898f
Diffstat (limited to 'libpackagelistparser/packagelistparser_test.cpp')
0 files changed, 0 insertions, 0 deletions
