Create /data/lineage_updates to store updates
GmsCore deletes the files in /data/ota_package/, including the files
downloaded by Updater. Create a new directory where Updater can store
its files not to have them disappear randomly.
Change-Id: Ifdfbc7f81eb5f2c4370d02f0634c869fdbb848b4
diff --git a/prebuilt/common/etc/init.local.rc b/prebuilt/common/etc/init.local.rc
index 101280e..1db6ec5 100644
--- a/prebuilt/common/etc/init.local.rc
+++ b/prebuilt/common/etc/init.local.rc
@@ -22,6 +22,10 @@
mkdir /data/ssh/empty 0600 root shell
mkdir /cache/recovery 0770 system cache
+ # Create an additional OTA package directory that unlike /data/ota_package
+ # will not be touched by GmsCore.
+ mkdir /data/lineageos_updates 0770 system cache
+
# Run sysinit
start sysinit