未验证 提交 65312a7d 编写于 作者: O openharmony_ci 提交者: Gitee

!1063 修改启动过程中优化导致vendor/userdata分区无法挂载问题

Merge pull request !1063 from OSWare/master
......@@ -167,21 +167,13 @@ static void HandleRequiredDynamicDeviceNodes(const struct Uevent *uevent)
static void HandleRequiredBlockDeviceNodes(const struct Uevent *uevent, char **devices, int num)
{
const char *deviceName;
for (int i = 0; i < num; i++) {
if (uevent->partitionName == NULL) {
deviceName = strstr(devices[i], "/dev/block");
if (deviceName == NULL) {
INIT_LOGI("device %s not match \"/dev/block\"", devices[i]);
continue;
}
deviceName += strlen("/dev/block");
if (strstr(uevent->syspath, deviceName) == NULL) {
continue;
if (strstr(devices[i], uevent->deviceName) != NULL) {
INIT_LOGI("%s match with required partition %s success, now handle it", devices[i], uevent->deviceName);
HandleBlockDeviceEvent(uevent);
return;
}
INIT_LOGI("%s match with required partition %s success, now handle it", uevent->syspath, deviceName);
HandleBlockDeviceEvent(uevent);
return;
} else if (strstr(devices[i], uevent->partitionName) != NULL ||
strstr(uevent->partitionName, "vendor") != NULL || strstr(uevent->partitionName, "system") != NULL) {
INIT_LOGI("Handle required partitionName %s", uevent->partitionName);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册