aboutsummaryrefslogtreecommitdiffstats
path: root/roots.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2011-04-12 09:28:10 -0700
committerDoug Zongker <dougz@android.com>2011-04-12 09:28:10 -0700
commit469243e53689b6f312d20813444dc00d83528758 (patch)
treee59d3978874c4637efdd7fb86201b1c360f4e56d /roots.c
parent3ed8e187212b06767e0ca5860cdbd79c11c9390e (diff)
downloadandroid_bootable_recovery-469243e53689b6f312d20813444dc00d83528758.tar.gz
android_bootable_recovery-469243e53689b6f312d20813444dc00d83528758.tar.bz2
android_bootable_recovery-469243e53689b6f312d20813444dc00d83528758.zip
save a last_install file with the result of the last package install attempt
When installing a package, create /cache/recovery/last_install, which contains the filename of the package and a 1 or 0 for success or failure. Also, don't mount ext4 and vfat filesystems as read-only (on devices where /cache is ext4, we need it to be read-write). Change-Id: I0cf2a1921bbd65e06343aa74e2006577fac77c2c
Diffstat (limited to 'roots.c')
-rw-r--r--roots.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/roots.c b/roots.c
index 1143b76b..cb7e067a 100644
--- a/roots.c
+++ b/roots.c
@@ -177,15 +177,14 @@ int ensure_path_mounted(const char* path) {
} else if (strcmp(v->fs_type, "ext4") == 0 ||
strcmp(v->fs_type, "vfat") == 0) {
result = mount(v->device, v->mount_point, v->fs_type,
- MS_NOATIME | MS_NODEV | MS_NODIRATIME | MS_RDONLY, "");
+ MS_NOATIME | MS_NODEV | MS_NODIRATIME, "");
if (result == 0) return 0;
if (v->device2) {
LOGW("failed to mount %s (%s); trying %s\n",
v->device, strerror(errno), v->device2);
result = mount(v->device2, v->mount_point, v->fs_type,
- MS_NOATIME | MS_NODEV |
- MS_NODIRATIME | MS_RDONLY, "");
+ MS_NOATIME | MS_NODEV | MS_NODIRATIME, "");
if (result == 0) return 0;
}