Merge "remount: Fix failure for system-as-root"

This commit is contained in:
Treehugger Robot 2021-06-04 20:42:22 +00:00 committed by Gerrit Code Review
commit d5e5ba7e96

View file

@ -420,7 +420,8 @@ static int do_remount(int argc, char* argv[]) {
break;
}
// Find overlayfs mount point?
if ((mount_point == "/") && (rentry.mount_point == "/system")) {
if ((mount_point == "/" && rentry.mount_point == "/system") ||
(mount_point == "/system" && rentry.mount_point == "/")) {
blk_device = rentry.blk_device;
mount_point = "/system";
found = true;