Merge "fs_mgr_overlayfs: Try "/system" and "/" when setting "/system" shared type"
This commit is contained in:
commit
44f1f094b3
1 changed files with 4 additions and 0 deletions
|
|
@ -642,6 +642,10 @@ bool fs_mgr_overlayfs_set_shared_mount(const std::string& mount_point, bool shar
|
||||||
if (ret) {
|
if (ret) {
|
||||||
PERROR << "__mount(target=" << mount_point
|
PERROR << "__mount(target=" << mount_point
|
||||||
<< ",flag=" << (shared_flag ? "MS_SHARED" : "MS_PRIVATE") << ")=" << ret;
|
<< ",flag=" << (shared_flag ? "MS_SHARED" : "MS_PRIVATE") << ")=" << ret;
|
||||||
|
// If "/system" doesn't look like a mountpoint, retry with "/".
|
||||||
|
if (errno == EINVAL && mount_point == "/system") {
|
||||||
|
return fs_mgr_overlayfs_set_shared_mount("/", shared_flag);
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue