system/corennnnn
Revisión | bdfc90aeed057110fa1c6959224cdde7d959d1ed (tree) |
---|---|
Tiempo | 2013-06-16 17:06:07 |
Autor | Andrew Boie <andrew.p.boie@inte...> |
Commiter | Chih-Wei Huang |
always try to create by-name links based on install id
Previously, if a block device was detected as a platform device,
the by-name logic which uses install id was skipped in favor of
the older logic which includes the bus in the path name. This
resulted in the installation of Android failing on these devices
since the expected devices nodes don't show up after the disk is
partitioned.
Now always try to use the install id logic, and fall back to the
older mechanism only if it doesn't produce any symlinks.
Change-Id: Idc096eb6425af478ddca7fe4ba9c0fe24b922d6e
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
@@ -593,10 +593,9 @@ static void handle_block_device_event(struct uevent *uevent) | ||
593 | 593 | snprintf(devpath, sizeof(devpath), "%s%s", base, name); |
594 | 594 | make_dir(base, 0755); |
595 | 595 | |
596 | - if (!strncmp(uevent->path, "/devices/platform/", 18)) | |
596 | + links = parse_gpt_block_device(uevent); | |
597 | + if (!links && !strncmp(uevent->path, "/devices/platform/", 18)) | |
597 | 598 | links = parse_platform_block_device(uevent); |
598 | - else | |
599 | - links = parse_gpt_block_device(uevent); | |
600 | 599 | |
601 | 600 | handle_device(uevent->action, devpath, uevent->path, 1, |
602 | 601 | uevent->major, uevent->minor, links); |