Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 041f8495 authored by Jin Qian's avatar Jin Qian
Browse files

init: require e2fsdroid and mke2fs when building init

init calls fs_mgr to format ext4 partitions. This requires
e2fsdroid and mke2fs in /system/bin/

Bug: 35219933
Change-Id: Ia32fe438cd9b9332f8e18e0cbe7f61bd050adcb1
parent 3b15f440
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -95,6 +95,10 @@ cc_binary {

    name: "init",
    defaults: ["init_defaults"],
    required: [
        "e2fsdroid",
        "mke2fs",
    ],
    static_executable: true,
    srcs: [
        "bootchart.cpp",
+4 −0
Original line number Diff line number Diff line
@@ -85,6 +85,10 @@ LOCAL_STATIC_LIBRARIES := \
    libavb \
    libkeyutils \

LOCAL_REQUIRED_MODULES := \
    e2fsdroid \
    mke2fs \

# Create symlinks.
LOCAL_POST_INSTALL_CMD := $(hide) mkdir -p $(TARGET_ROOT_OUT)/sbin; \
    ln -sf ../init $(TARGET_ROOT_OUT)/sbin/ueventd; \