Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f455c8d authored by Kelvin Zhang's avatar Kelvin Zhang Committed by Mohammad Samiul Islam
Browse files

Create apex reserved dir for update_engine

When installing an OTA, update_engine needs to reserve some space on
filesystem by writing to a specific directory(/data/apex/ota_reserved/),
therefore we need to create this dir on system start up.

We are also pro-actively enabling encryption on this directory so that
we can create hard links to /data/apex/decompressed. This will be needed
when we start decompresssing capex from post-install script before
reboot and on boot we can then simply hard link to these files.

Test: th
Bug: 172911822

Change-Id: Ia6a63efcedcfdad9817ba88b54f96683d34df6ce
parent 286e5aba
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -659,6 +659,7 @@ on post-fs-data
    mkdir /data/apex/hashtree 0700 root system
    mkdir /data/apex/sessions 0700 root system
    mkdir /data/app-staging 0751 system system encryption=DeleteIfNecessary
    mkdir /data/apex/ota_reserved 0700 root system encryption=Require
    start apexd

    # Avoid predictable entropy pool. Carry over entropy from previous boot.