snapshotctl: Check device for -img path
If the device exists only on /data, then the image path should be checked with -img. Bug: 330744468 Test: snapshotctl apply-update Change-Id: I64ff7d803fdaaa02d2d6929994ad1124bfffab8b Signed-off-by: Akilesh Kailash <akailash@google.com>
This commit is contained in:
parent
33a742028e
commit
81c5e02b50
1 changed files with 2 additions and 0 deletions
|
|
@ -255,6 +255,8 @@ bool MapSnapshots::GetCowDevicePath(std::string partition_name, std::string* cow
|
|||
}
|
||||
|
||||
LOG(INFO) << "Failed to find cow path: " << cow_device << " Checking the device for -img path";
|
||||
// If the COW device exists only on /data
|
||||
cow_device = partition_name + "-cow-img";
|
||||
if (!dm.GetDmDevicePathByName(cow_device, cow_path)) {
|
||||
LOG(ERROR) << "Failed to cow path: " << cow_device;
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue