• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


Commit MetaInfo

Révision2b8e96bd64ac901905b3bb96e255c68664f3d7bc (tree)
l'heure2019-04-03 06:54:34
AuteurTreehugger Robot <treehugger-gerrit@goog...>
CommiterGerrit Code Review

Message de Log

Merge "fs_mgr: remount: system is root"

Change Summary

Modification

--- a/fs_mgr/fs_mgr_remount.cpp
+++ b/fs_mgr/fs_mgr_remount.cpp
@@ -340,6 +340,7 @@ int main(int argc, char* argv[]) {
340340 blk_device = rentry.blk_device;
341341 break;
342342 }
343+ // Find overlayfs mount point?
343344 if ((mount_point == "/") && (rentry.mount_point == "/system")) {
344345 blk_device = rentry.blk_device;
345346 mount_point = "/system";
@@ -352,6 +353,12 @@ int main(int argc, char* argv[]) {
352353 }
353354 fs_mgr_set_blk_ro(blk_device, false);
354355
356+ // Find system-as-root mount point?
357+ if ((mount_point == "/system") && !GetEntryForMountPoint(&mounts, mount_point) &&
358+ GetEntryForMountPoint(&mounts, "/")) {
359+ mount_point = "/";
360+ }
361+
355362 // Now remount!
356363 if (::mount(blk_device.c_str(), mount_point.c_str(), entry.fs_type.c_str(), MS_REMOUNT,
357364 nullptr) == 0) {