From 84df0110021855994e3aba34d0ea3566023540ae Mon Sep 17 00:00:00 2001 From: Deokgyu Yang Date: Thu, 27 May 2021 22:36:21 +0900 Subject: [PATCH] gts3l: fs: Edit fstab to fit into the modern Android Signed-off-by: Deokgyu Yang Change-Id: I7717dfda73f5a2d860807d4619e6db145e735ab7 --- rootdir/etc/fstab.qcom | 22 ++++++++++++---------- rootdir/etc/init.target.rc | 18 ++++++------------ 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/rootdir/etc/fstab.qcom b/rootdir/etc/fstab.qcom index 3d2cb09..1a6a10f 100644 --- a/rootdir/etc/fstab.qcom +++ b/rootdir/etc/fstab.qcom @@ -1,18 +1,20 @@ # Android fstab file. # The filesystem that contains the filesystem checker binary (typically /system) cannot # specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK -# +# -/dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1 wait,recoveryonly -/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,noatime,barrier=1,noauto_da_alloc wait,check,encryptable=footer,quota,formattable -/dev/block/bootdevice/by-name/cache /cache ext4 nosuid,nodev,noatime,barrier=1 wait,check,formattable -/dev/block/bootdevice/by-name/apnhlos /firmware vfat ro,shortname=lower,dmask=222,fmask=333,context=u:object_r:firmware_file:s0 wait -/dev/block/bootdevice/by-name/modem /firmware-modem vfat ro,shortname=lower,dmask=222,fmask=333,context=u:object_r:firmware_file:s0 wait -/dev/block/bootdevice/by-name/efs /efs ext4 nosuid,nodev,noauto_da_alloc,journal_async_commit,data=ordered,errors=panic wait,check -/dev/block/bootdevice/by-name/persist /persist ext4 nosuid,nodev,barrier=1 wait +/dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1 wait,recoveryonly +/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,noatime,barrier=1,noauto_da_alloc wait,check,encryptable=footer,quota,formattable +/dev/block/bootdevice/by-name/cache /cache ext4 nosuid,nodev,noatime,barrier=1 wait,check,formattable +/dev/block/bootdevice/by-name/apnhlos /vendor/firmware_mnt vfat ro,shortname=lower,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait +/dev/block/bootdevice/by-name/modem /vendor/firmware-modem vfat ro,shortname=lower,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait +/dev/block/bootdevice/by-name/bluetooth /vendor/bt_firmware vfat ro,shortname=lower,dmask=227,fmask=337,context=u:object_r:bt_firmware_file:s0 wait +/dev/block/bootdevice/by-name/dsp /vendor/dsp ext4 ro,nosuid,nodev,barrier=1 wait +/dev/block/bootdevice/by-name/efs /mnt/vendor/efs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait +/dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait -/dev/block/bootdevice/by-name/boot /boot emmc defaults recoveryonly -/dev/block/bootdevice/by-name/recovery /recovery emmc defaults recoveryonly +/dev/block/bootdevice/by-name/boot /boot emmc defaults recoveryonly +/dev/block/bootdevice/by-name/recovery /recovery emmc defaults recoveryonly # SDCard /devices/soc/74a4900.sdhci/mmc_host/mmc* auto auto defaults voldmanaged=sdcard:auto,encryptable=userdata diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 616ab57..aed4bdd 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -42,24 +42,18 @@ on fs setprop ro.crypto.fde_algorithm AES-256-XTS swapon_all /vendor/etc/fstab.qcom - mkdir /mnt/vendor/efs 0771 system radio - mkdir /mnt/vendor/persist 0771 root system + restorecon -R /mnt/vendor/efs + chmod 0771 /mnt/vendor/efs + chown radio system /mnt/vendor/efs - mount /firmware /vendor/firmware_mnt bind - mount /firmware-modem /vendor/firmware-modem bind - mount /efs /mnt/vendor/efs bind - mount /persist /mnt/vendor/persist bind + restorecon_recursive /mnt/vendor/persist + chmod 0771 /mnt/vendor/persist + chown root system /mnt/vendor/persist mkdir /mnt/vendor/persist/data 0700 system system mkdir /mnt/vendor/persist/rfs 0700 system system - wait /dev/block/bootdevice/by-name/bluetooth - mount vfat /dev/block/bootdevice/by-name/bluetooth /vendor/bt_firmware ro shortname=lower,uid=1002,gid=3002,dmask=227,fmask=337,context=u:object_r:bt_firmware_file:s0 - - wait /dev/block/bootdevice/by-name/dsp - mount ext4 /dev/block/bootdevice/by-name/dsp /vendor/dsp ro nosuid nodev barrier=1 restorecon_recursive /vendor/dsp - mount ext4 /dev/block/bootdevice/by-name/dsp /vendor/dsp ro remount nosuid nodev barrier=1 on init write /sys/module/qpnp_rtc/parameters/poweron_alarm 1