Store updates on userdata partition

since /cache is too small
This commit is contained in:
Joel Selvaraj
2020-11-07 22:31:28 +05:30
parent 7bb800b8c2
commit d8dd8f0add

View File

@@ -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