From b783310e713bf3a64b1551497f3a5ebfad7cbe86 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Wed, 29 Dec 2021 15:11:00 -0800 Subject: [PATCH] Allow to run fsck.f2fs in first_stage_ramdisk [ 23.065933][ T1] init: [libfs_mgr]Running /system/bin/fsck.f2fs -a -c 10000 --debug-cache /dev/block/sda8 [ 23.067470][ T1] logwrapper: Cannot log to file /dev/fscklogs/log [ 23.067829][ T1] logwrapper: [ 23.068997][ T332] logwrapper: executing /system/bin/fsck.f2fs failed: Permission denied [ 23.069759][ T1] fsck.f2fs: executing /system/bin/fsck.f2fs failed: Permission denied [ 23.071659][ T332] logwrapper: [ 23.083283][ T1] fsck.f2fs: fsck.f2fs terminated by exit(255) [ 23.083283][ T1] [ 23.111166][ T1] F2FS-fs (sda8): Found nat_bits in checkpoint [ 23.121242][ T1] F2FS-fs (sda8): Mounted with checkpoint version = 6a65cb64 [ 23.121831][ T1] init: [libfs_mgr]__mount(source=/dev/block/platform/14700000.ufs/by-name/metadata,target=/metadata,type=f2fs)=0: Success Bug: 210589189 Signed-off-by: Jaegeuk Kim Change-Id: I720e2aa4b1ab845af96610cd0d9c6e3c9b4cae03 --- libcutils/fs_config.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libcutils/fs_config.cpp b/libcutils/fs_config.cpp index e9497a806..a6835fc70 100644 --- a/libcutils/fs_config.cpp +++ b/libcutils/fs_config.cpp @@ -211,6 +211,7 @@ static const struct fs_path_config android_files[] = { { 00755, AID_ROOT, AID_ROOT, 0, "first_stage_ramdisk/system/bin/resize2fs" }, { 00755, AID_ROOT, AID_ROOT, 0, "first_stage_ramdisk/system/bin/snapuserd" }, { 00755, AID_ROOT, AID_ROOT, 0, "first_stage_ramdisk/system/bin/tune2fs" }, + { 00755, AID_ROOT, AID_ROOT, 0, "first_stage_ramdisk/system/bin/fsck.f2fs" }, // generic defaults { 00755, AID_ROOT, AID_ROOT, 0, "bin/*" }, { 00640, AID_ROOT, AID_SHELL, 0, "fstab.*" },