Skip to content
This repository was archived by the owner on Jul 29, 2023. It is now read-only.

Commit 287a340

Browse files
committed
create mount point for persist in post-fs stage; cleanup
Signed-off-by: Bharat Dev Burman <[email protected]>
1 parent 63bfcaa commit 287a340

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

recovery/root/init.recovery.trustonic.rc

+5-25
Original file line numberDiff line numberDiff line change
@@ -20,45 +20,25 @@ service mobicore /vendor/bin/mcDriverDaemon --P1 /mnt/vendor/persist/mcRegistry
2020
disabled
2121
seclabel u:r:recovery:s0
2222

23-
on fs
24-
# Create the mountpoint for /mnt/vendor/persist partition
23+
on post-fs
24+
# Create the mountpoint for persist partition
2525
mkdir /mnt/vendor/persist 0771 system system
2626

27-
# Mount the persist partition on /mnt/vendor/persist
28-
mount ext4 /dev/block/by-name/persist /mnt/vendor/persist rw
29-
30-
on post-fs
3127
chown system system /mnt/vendor/persist
3228
chmod 0771 /mnt/vendor/persist
3329

3430
# We restorecon /mnt/vendor/persist to set SEPolicy label.
3531
restorecon /mnt/vendor/persist
3632

33+
# Mount the persist partition on /mnt/vendor/persist
34+
mount ext4 /dev/block/by-name/persist /mnt/vendor/persist rw
35+
3736
# Create mcRegistry to store failure record
3837
mkdir /mnt/vendor/persist/mcRegistry 0771 system system
3938

40-
write /proc/bootprof "MOBICORE: Starting mcDriverDaemon"
4139
start mobicore
4240

4341
on post-fs-data
4442
# Create /data/vendor/key_provisioning dir and get proper encryption policy installed
4543
# Key Installation
4644
mkdir /data/vendor/key_provisioning 0771 system system
47-
48-
# For META/FACTORY mode
49-
on property:ro.crypto.state=unencrypted
50-
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry ++ (unencrypted)"
51-
mkdir /data/vendor/mcRegistry 0775 system system
52-
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry -- (unencrypted)"
53-
54-
# Normal mode, FBE
55-
on property:ro.crypto.type=file
56-
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry ++ (FBE encrypted)"
57-
mkdir /data/vendor/mcRegistry 0775 system system
58-
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry -- (FBE encrypted)"
59-
60-
# Normal mode, FDE
61-
on property:ro.crypto.type=block
62-
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry ++ (FDE encrypted)"
63-
mkdir /data/vendor/mcRegistry 0775 system system
64-
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry -- (FDE encrypted)"

0 commit comments

Comments
 (0)