summaryrefstree
path: root/system/init.miui.opconfig.rc
blob: 90a27637389f8fceaea6364b8dd536e9dbfb7744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
on early-init
    mkdir /opconfig 0775 system system

on init
    mkdir /opconfig 0775 system system

on fs
    wait /dev/block/by-name/opconfig
    mount ext4 /dev/block/by-name/opconfig  /opconfig ro noatime nosuid nodev barrier=1
    chown system system /opconfig
    chmod 0775 /opconfig

on post-fs
    # We chown/chmod /opconfig again so because mount is run as root + defaults
    chown system system /opconfig
    chmod 0775 /opconfig
    # We restorecon /opconfig in case the opcust partition has been reset.
    restorecon_recursive /opconfig

    # create the lost+found directories, so as to enforce our permissions
    mkdir /opconfig/lost+found 0770 root root