summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorLuis Hector Chavez <lhchavez@google.com>2018-02-15 14:43:04 +0000
committerandroid-build-merger <android-build-merger@google.com>2018-02-15 14:43:04 +0000
commitb0d8b26e0fc415742bde933f61cd050284981624 (patch)
treec5a9d541a9371ca8b9c930846d18221883f0491e /rootdir
parentff13ac62e9511a4432abee316a2cab0faa5a71e9 (diff)
parent655d6d5451fd515d832721129bee78d0ab8d4d07 (diff)
downloadcore-b0d8b26e0fc415742bde933f61cd050284981624.tar.gz
core-b0d8b26e0fc415742bde933f61cd050284981624.tar.bz2
core-b0d8b26e0fc415742bde933f61cd050284981624.zip
Merge "init.rc: Remount / with MS_REMOUNT|MS_BIND" am: 008576080e am: c37d85953e
am: 655d6d5451 Change-Id: Idb18188ad9b3b667411d428ae616498748b8281a
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc5
1 files changed, 3 insertions, 2 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index b703ad0a9..927bc65e6 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -318,8 +318,9 @@ on post-fs
start hwservicemanager
start vndservicemanager
- # once everything is setup, no need to modify /
- mount rootfs rootfs / ro remount
+ # Once everything is setup, no need to modify /.
+ # The bind+ro combination avoids modifying any other mount flags.
+ mount rootfs rootfs / remount bind ro
# Mount shared so changes propagate into child namespaces
mount rootfs rootfs / shared rec
# Mount default storage into root namespace