Go to file
Bowgo Tsai 8bba52fc4b init: support early_mount with vboot 2.0 (external/avb/libavb)
libavb requires verifying AVB metadata on all verified partitions at
once. For example, /vbmeta, /boot, /system and /vendor. We need to
invoke device_init() for those partitions even if we only want to early
mount some of them, like /vendor and /system.

This CL gets all AVB partitions and the early mount partitions from
device tree through "firmware/android/vbmeta" and "firmware/fstab",
respectively. The following is an example to early mount /vendor
partition on bullhead:

firmware {
    android {
        compatible = "android,firmware";
        vbmeta {
            compatible = "android,vbmeta";
            parts = "boot,system,vendor";
            by_name_prefix="/dev/block/platform/soc.0/f9824900.sdhci/by-name"
        };
        fstab {
            compatible = "android,fstab";
            vendor {
                compatible = "android,vendor";
                dev = "/dev/block/platform/soc.0/f9824900.sdhci/by-name/vendor";
                type = "ext4";
                mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
                fsmgr_flags = "wait,avb";
            };
        };
    };
};

Bug: 33254008
Test: early mount /vendor with vboot 2.0 (AVB) on bullhead
Test: early mount /system without dm-verity on bullhead
Test: early mount /vendor with vboot 1.0 on sailfish

Change-Id: I89a1f77c97124f309346b33d9e700544b92ecf05
2017-04-14 12:10:20 +08:00
adb Move adb backup/restore helptext to adb shell bu help. 2017-04-11 19:15:17 +01:00
adf libadfhwc: Fix adf_hwc_close 2017-03-02 17:40:16 +00:00
base Merge "Add android::base::ScopeGuard" 2017-04-06 22:41:02 +00:00
bootstat Add test config to bootstat_tests 2017-04-05 14:49:47 +00:00
cpio Possible null pointer miss on realloc 2017-03-23 22:41:14 +01:00
debuggerd Merge "crash_dump: during early boot, output to kmsg on userdebug." 2017-04-10 20:51:59 +00:00
demangle Make demangle work more like c++filt. 2017-03-28 17:38:01 -07:00
fastboot Merge "Show install path in "adb --version" and "fastboot --version"." 2017-04-04 01:16:11 +00:00
fingerprintd
fs_mgr fs_mgr: adds/changes some public APIs for early mount in init 2017-04-13 18:29:10 +08:00
gatekeeperd
healthd Merge "healthd: Implement scheduleUpdate" 2017-03-23 00:48:48 +00:00
include Moved include/backtrace to libbacktrace/include 2017-04-11 11:22:43 -07:00
init init: support early_mount with vboot 2.0 (external/avb/libavb) 2017-04-14 12:10:20 +08:00
libappfuse Add test config to libappfuse_test 2017-03-31 17:11:50 -07:00
libbacktrace Moved include/backtrace to libbacktrace/include 2017-04-11 11:22:43 -07:00
libbinderwrapper Convert libbinderwrapper_test_support to be a static library 2017-03-03 17:14:04 -08:00
libcrypto_utils
libcutils libcutils: fix system-background tasks shown in top command 2017-04-12 16:25:25 +08:00
libdiskconfig
libion
liblog Remove .(ll)ndk suffix from (ll)ndk_library 2017-04-11 15:14:28 +00:00
libmemtrack
libmemunreachable
libmetricslogger libmetricslogger: Use libBionicGtestMain instead of a custom test runner. 2017-02-13 13:41:44 -08:00
libnativebridge NativeBridge: add "linked namespace" semantic corresponding to linker 2017-03-29 17:34:11 -07:00
libnativeloader NativeBridge: add "linked namespace" semantic corresponding to linker 2017-03-29 17:34:11 -07:00
libnetutils
libpackagelistparser
libpixelflinger
libprocessgroup add killProcessGroupOnce 2017-03-29 16:33:15 -07:00
libprocinfo Enable more modules on linux_bionic builds 2017-03-15 15:44:00 -07:00
libsparse
libsuspend
libsync
libsystem Moved all files from include/system to libsystem/include/system 2017-04-06 10:28:50 -07:00
libsysutils There's no longer a limit to property names. 2017-02-28 14:12:54 -08:00
libunwindstack Implement maps parsing. 2017-04-06 15:01:02 -07:00
libusbhost
libutils libutils: mark as vendor_available 2017-04-12 08:59:41 -07:00
libziparchive ZipWriter: Keep LFH and CFH in sync 2017-04-11 01:45:25 +00:00
lmkd
logcat logcatd: introduce logcatd executable 2017-04-04 08:01:50 -07:00
logd Force set timezone to UTC in logd. 2017-04-12 14:33:17 -07:00
logwrapper Merge "logwrapper: add a benchmark for android_fork_execvp_ext" 2017-03-23 11:56:10 +00:00
mkbootimg
reboot
rootdir Merge "disable module loading after BOOT_COMPLETED broadcast" 2017-04-12 22:59:37 +00:00
run-as
sdcard
shell_and_utilities Switch to a shell_and_utilities phony module. 2017-04-03 17:14:26 +00:00
toolbox Add a reasonably full implementation of gzip/gunzip/zcat. 2017-04-10 10:56:40 -07:00
trusty trusty: keymaster: update device tests to use 2.0 API 2017-04-10 17:33:49 -07:00
tzdatacheck Update to support staging behavior 2017-03-29 10:56:45 +01:00
.clang-format Add a 2 width option of clang format. 2017-03-10 13:01:39 -08:00
.clang-format-2 Only allow short functions in class definitions. 2017-03-28 12:31:37 -07:00
.clang-format-4 Only allow short functions in class definitions. 2017-03-28 12:31:37 -07:00
.gitignore
Android.bp
Android.mk
CleanSpec.mk
MODULE_LICENSE_APACHE2
NOTICE
PREUPLOAD.cfg Add a PREUPLOAD.cfg file to run git-clang-format on every commit 2017-03-08 16:51:26 +08:00