platform_system_core/fs_mgr/include
Yifan Hong 402633d605 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
2019-04-15 15:11:28 -07:00
..
fs_mgr Move parts of roots.cpp from librecovery 2018-12-19 10:23:50 -08:00
fs_mgr.h init: add umount_all builtin. 2019-04-15 15:11:28 -07:00
fs_mgr_dm_linear.h fs_mgr: Add a helper for creating one-off dynamic partitions. 2019-01-07 18:31:54 -08:00
fs_mgr_overlayfs.h fs_mgr: overlayfs: export fs_mgr_overlayfs_candidate_list 2019-02-13 10:49:18 -08:00
fs_mgr_vendor_overlay.h Mount vendor overlay from the system partition 2018-11-01 10:26:12 +09:00