summaryrefslogtreecommitdiff
path: root/update_status_utils.h
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2017-03-22 17:00:31 -0700
committerAlex Deymo <deymo@google.com>2017-03-25 01:43:15 +0000
commitf411650403c1d69c15ec0f2ee09b24c6c0ec67b5 (patch)
treebe70f831776e3b31271b3c78b75ca103586245e2 /update_status_utils.h
parenta6dc0fe787733d489f403b5162d99a78e17517f4 (diff)
Unmount old postinstall mountpoint from previous runs.
When update_engine crashes, is killed or a developer runs "stop update_engine" while we are waiting for postinstall to finish the other partition will continue to be mounted (read-only) on the /postinsall path. This will prevent to mount the new postinstall step on top of it due to different SELinux labels when mounted and unmounted. After failing to run postinstall due to the failed mount operation we would cleanup the mountpoint, so this situation fixes itself after one failed update attempt, which can then be resumed from the very end. This patch attempts to unmount /postinstall if a filesystem is mounted there at the time we need to use the mountpoint. Bug: 36391471 Test: Added unittests. Change-Id: Idffd7a9319715bfb4ab6a9994c6757d27028d40a
Diffstat (limited to 'update_status_utils.h')
0 files changed, 0 insertions, 0 deletions