From 6cf33e69baa58a6e76d4d1b043ef7f196075e038 Mon Sep 17 00:00:00 2001 From: SGCMarkus Date: Thu, 17 Feb 2022 15:38:48 +0100 Subject: [PATCH] sm8250-common: add recovery init and fstab --- recovery/fstab.qcom | 8 +++++++ recovery/root/init.recovery.qcom.rc | 35 +++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 recovery/fstab.qcom create mode 100644 recovery/root/init.recovery.qcom.rc diff --git a/recovery/fstab.qcom b/recovery/fstab.qcom new file mode 100644 index 0000000..2b5cb02 --- /dev/null +++ b/recovery/fstab.qcom @@ -0,0 +1,8 @@ +# Android fstab file. + +# +system /system ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey,logical,first_stage_mount +system_ext /system_ext ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,nofail,first_stage_mount +vendor /vendor ext4 ro,barrier=1 wait,slotselect,avb,logical,first_stage_mount +product /product ext4 ro,barrier=1 wait,slotselect,avb,logical,nofail,first_stage_mount +/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard wait,formattable,first_stage_mount,check diff --git a/recovery/root/init.recovery.qcom.rc b/recovery/root/init.recovery.qcom.rc new file mode 100644 index 0000000..9d33f4a --- /dev/null +++ b/recovery/root/init.recovery.qcom.rc @@ -0,0 +1,35 @@ +# Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# * Neither the name of The Linux Foundation nor +# the names of its contributors may be used to endorse or promote +# products derived from this software without specific prior written +# permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# + +import init.recovery.lkm.rc + +on init + setprop sys.usb.configfs 1 + +on fs + wait /dev/block/platform/soc/${ro.boot.bootdevice} + symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice \ No newline at end of file