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

Commit f97da3c6 authored by Elliot Berman's avatar Elliot Berman
Browse files

Add fs_config entry for first_stage.sh



First stage init will not run first_stage.sh if it's not executable,
even if androidboot.first_stage_init=1. If mkbootfs is used to package
the ramdisk, this results in a ramdisk with a first_stage.sh that isn't
executable. Add default entry for first_stage.sh with executable bits
set.

Bug: 386837572
Change-Id: Ic7f50141cca678003177252dc760d06c39f91e80
Signed-off-by: default avatarElliot Berman <elliot.berman@oss.qualcomm.com>
parent 0c563315
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -205,6 +205,7 @@ static const struct fs_path_config android_files[] = {
    { 00755, AID_ROOT,      AID_ROOT,      0, "first_stage_ramdisk/system/bin/fsck.f2fs" },
    { 00755, AID_ROOT,      AID_ROOT,      0, "first_stage_ramdisk/system/bin/fsck.f2fs" },
    // generic defaults
    // generic defaults
    { 00755, AID_ROOT,      AID_ROOT,      0, "bin/*" },
    { 00755, AID_ROOT,      AID_ROOT,      0, "bin/*" },
    { 00755, AID_ROOT,      AID_ROOT,      0, "first_stage.sh"},
    { 00640, AID_ROOT,      AID_SHELL,     0, "fstab.*" },
    { 00640, AID_ROOT,      AID_SHELL,     0, "fstab.*" },
    { 00750, AID_ROOT,      AID_SHELL,     0, "init*" },
    { 00750, AID_ROOT,      AID_SHELL,     0, "init*" },
    { 00644, AID_ROOT,      AID_ROOT,      0, "*.rc" },
    { 00644, AID_ROOT,      AID_ROOT,      0, "*.rc" },