diff options
| author | Yifan Hong <elsk@google.com> | 2019-04-09 10:11:34 -0700 |
|---|---|---|
| committer | Yifan Hong <elsk@google.com> | 2019-04-15 15:11:28 -0700 |
| commit | 2c19fc56bcdf1a1c018c75e7bf6d4251772be59f (patch) | |
| tree | 43dc4ff66f664d4df8d8486e09cf6a94dfc6fbfc /libsparse/sparse.cpp | |
| parent | f86c1dd4b44635b27349c4a44a9d0da77d707a38 (diff) | |
init: add umount_all builtin.
umount_all is the cleanup step for mount_all.
In particular, the mount_all builtin creates a verity device,
'postinstall-verity', for the following line:
system /postinstall ... ... slotselect_other,logical,avb_keys=...
cppreopt umounts /postinstall but doesn't destroy the postinstall-verity
device, causing OTA to fail (because it cannot destroy the
system_[other] device). umount_all also destroy the verity device.
Note that mount_all does not map system_[other]; it is mapped by
first stage init. Hence, umount_all doesn't destroy it either. The OTA
client is reponsible for unmapping the device itself.
Bug: 129988285
Test: flash, boot, then check `dmctl list devices`, then OTA
Change-Id: Id3ab65b3860b6ea6cfec310ab13652009c81f415
Merged-In: Id3ab65b3860b6ea6cfec310ab13652009c81f415
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions
