mksquashfs: Run android_fs_config() on the root inode
This change runs android_fs_config() on the root inode. This is needed
in the case where the root of the filesystem is present in the
android_fs_config file.
Bug: 72745016
Test: mksquashfs path system.raw.img -fs-config-file fs_config -android-fs-config
Change-Id: I5954cd5e7a597dbc956fa150c8ff6835d51ee294
diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c
index 60be156..5df1f94 100644
--- a/squashfs-tools/mksquashfs.c
+++ b/squashfs-tools/mksquashfs.c
@@ -3296,6 +3296,9 @@
/* ANDROID CHANGES START*/
#ifdef ANDROID
dir_ent->capabilities = caps;
+ if (android_config) {
+ android_fs_config(fs_config_func, "", &dir_ent->inode->buf, target_out_path, &dir_ent->capabilities);
+ }
#endif
/* ANDROID CHANGES END */