Merge "Check if we need to Poll for devices after RegenerateUevents"
am: 06e6b8551a
Change-Id: I569e3564d78636b1f79d4c20a161ff1120b94276
This commit is contained in:
commit
25ccd57180
1 changed files with 8 additions and 1 deletions
|
|
@ -580,7 +580,14 @@ bool FirstStageMount::MountPartitions() {
|
||||||
required_devices_partition_names_.emplace(basename(device.c_str()));
|
required_devices_partition_names_.emplace(basename(device.c_str()));
|
||||||
auto uevent_callback = [this](const Uevent& uevent) { return UeventCallback(uevent); };
|
auto uevent_callback = [this](const Uevent& uevent) { return UeventCallback(uevent); };
|
||||||
uevent_listener_.RegenerateUevents(uevent_callback);
|
uevent_listener_.RegenerateUevents(uevent_callback);
|
||||||
uevent_listener_.Poll(uevent_callback, 10s);
|
if (!required_devices_partition_names_.empty()) {
|
||||||
|
uevent_listener_.Poll(uevent_callback, 10s);
|
||||||
|
if (!required_devices_partition_names_.empty()) {
|
||||||
|
LOG(ERROR) << __PRETTY_FUNCTION__
|
||||||
|
<< ": partition(s) not found after polling timeout: "
|
||||||
|
<< android::base::Join(required_devices_partition_names_, ", ");
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
InitMappedDevice(device);
|
InitMappedDevice(device);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue