• 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évisiona8611c0982c498a927b901fa7715fedd76f8d974 (tree)
l'heure2019-04-03 07:25:04
AuteurMark Salyzyn <salyzyn@goog...>
Commiterandroid-build-merger

Message de Log

Merge "fs_mgr: remount: system is root" am: 2b8e96bd64
am: 81e08d4c98

Change-Id: I31b0c419f36eb1019e8a981bd7a181c765d4a86f

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) {