commit | 289ca9b68c5bb10c3dda8aa71ae1bbe9dbc98ae7 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Feb 17 16:40:17 2016 -0800 |
committer | Rob Landley <rob@landley.net> | Wed Feb 17 19:01:19 2016 -0600 |
tree | 7a0750de0dfdefd1ff053ab11179c384bcab70d1 | |
parent | b75c7dfa886e0cb9799e2c5673f7cb5cbf1a77ac [diff] |
Fix remounting /system on Android. This adds the missing "relatime" option, fixes error handling logic (mount returns 0/-1, not an errno value, and I at least get EACCES rather than EROFS in the case where the underlying block device is read-only; we should also probably only try again if the ioctl actually succeeded), and adds the missing newline in case where we go around and try again read-only. The test case was "mount -o rw,remount /system" on Android.