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: Elliot Berman <elliot.berman@oss.qualcomm.com>
diff --git a/libcutils/fs_config.cpp b/libcutils/fs_config.cpp
index 2e4b9b4..00a1114 100644
--- a/libcutils/fs_config.cpp
+++ b/libcutils/fs_config.cpp
@@ -205,6 +205,7 @@
{ 00755, AID_ROOT, AID_ROOT, 0, "first_stage_ramdisk/system/bin/fsck.f2fs" },
// generic defaults
{ 00755, AID_ROOT, AID_ROOT, 0, "bin/*" },
+ { 00755, AID_ROOT, AID_ROOT, 0, "first_stage.sh"},
{ 00640, AID_ROOT, AID_SHELL, 0, "fstab.*" },
{ 00750, AID_ROOT, AID_SHELL, 0, "init*" },
{ 00644, AID_ROOT, AID_ROOT, 0, "*.rc" },