aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rootdir/etc/init.goldfish.rc8
1 files changed, 8 insertions, 0 deletions
diff --git a/rootdir/etc/init.goldfish.rc b/rootdir/etc/init.goldfish.rc
index cde9dee2..bec3e301 100644
--- a/rootdir/etc/init.goldfish.rc
+++ b/rootdir/etc/init.goldfish.rc
@@ -4,6 +4,14 @@ on early-init
# for backwards compatibility
symlink /mnt/sdcard /sdcard
+on fs
+# mount mtd partitions
+ # Mount /system rw first to give the filesystem a chance to save a checkpoint
+ mount ext4 mtd@system /system
+ mount ext4 mtd@system /system ro remount
+ mount ext4 mtd@userdata /data nosuid nodev
+ mount ext4 mtd@cache /cache nosuid nodev
+
on boot
setsebool in_qemu=1
restorecon /sys/qemu_trace/process_name