Fix tests for new overlayfs
adb remount used to remount every full or almost full partition.
However, this is not possible with new overlayfs because it would
require a very permissive overlay_remounter policy.
Make component of test that specifically looks for that logging only
Bug: 397158623
Test: system/core/fs_mgr/tests/adb-remount-test.sh on Pixel 6
Change-Id: I0a1d8088fa0a3ce880111254366468268c6bffb9
diff --git a/fs_mgr/tests/adb-remount-test.sh b/fs_mgr/tests/adb-remount-test.sh
index 139ac92..df9635e 100755
--- a/fs_mgr/tests/adb-remount-test.sh
+++ b/fs_mgr/tests/adb-remount-test.sh
@@ -1320,7 +1320,10 @@
for d in ${D}; do
if adb_sh tune2fs -l "${d}" </dev/null 2>&1 | grep -q "Filesystem features:.*shared_blocks" ||
adb_sh df -k "${d}" | grep -q " 100% "; then
- die "remount overlayfs missed a spot (rw)"
+ # See b/397158623
+ # The new overlayfs mounter is a bit more limited due to sepolicy. Since we know of no use
+ # cases for these mounts, disabling for now
+ LOG OK "remount overlayfs missed a spot (rw)"
fi
done
else