summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorBowgo Tsai <bowgotsai@google.com>2017-05-02 18:30:33 +0800
committerBowgo Tsai <bowgotsai@google.com>2017-05-04 08:58:22 +0800
commitbfc9b6380da40a06c1c7a2d3407115790cd15c11 (patch)
tree4ebb61521e1a8a83bce18a3ee4c3fbc47cba7b85 /base/errors_unix.cpp
parent39225a131b681afb6728a0e9ee7116d596f2e24a (diff)
init: fix first stage mount failure due to /dev/device-mapper not found
It has been reported that fs_mgr failed to open /dev/device-mapper during the first stage mount. It's because other uevent (e.g., i2c charger device) happens to be sent at the same time we're triggering the device-mapper uevent to be sent. Current implementation returns COLDBOOT_STOP unconditionally so it will only process the first received uevent, leaving device-mapper uevent unhandled when the race happens. Fix this by only returning COLDBOOT_STOP when the received uevent->path matches that of device mapper. Bug: 37745254 Test: first stage mount /vendor with vboot 2.0 (avb) on bullhead Test: first stage mount /vendor with vboot 1.0 on sailfish Change-Id: I4a77093ec8f90a5ca981a088f34d082d0270533b Merged-In: I4a77093ec8f90a5ca981a088f34d082d0270533b (cherry picked from commit ea5fca4cd06006e99695c8372be0a58302314651)
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions