From d8dd8f0addd49d2c492d434114a098f4ae028d7e Mon Sep 17 00:00:00 2001 From: Joel Selvaraj Date: Sat, 7 Nov 2020 22:31:28 +0530 Subject: [PATCH] Store updates on userdata partition since /cache is too small --- overlay/system/etc/init/mount-android.conf | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 overlay/system/etc/init/mount-android.conf diff --git a/overlay/system/etc/init/mount-android.conf b/overlay/system/etc/init/mount-android.conf new file mode 100644 index 0000000..9941a24 --- /dev/null +++ b/overlay/system/etc/init/mount-android.conf @@ -0,0 +1,26 @@ +# Mount device partitions + +description "Mount device partitions" + +start on (startup + and started udev) + +task + +script + mkdir -p /dev/cpuset + mount none /dev/cpuset -t cpuset -o nodev,noexec,nosuid + + bash /usr/sbin/mount-android.sh + + # Store updates on userdata partition since cache is too small + umount /android/cache || true + mkdir -p /userdata/cache + mount -o bind /userdata/cache /android/cache + mkdir -p /android/cache/recovery + + if [ -d /android/metadata ]; then + mount -o bind /android/metadata /var/lib/lxc/android/rootfs/metadata + fi +end script +