From: Mateusz Moscicki Date: Wed, 24 Aug 2022 10:23:38 +0000 (+0200) Subject: Mount hal partition during recovery X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen;p=platform%2Fcore%2Fsystem%2Fsystem-recovery.git Mount hal partition during recovery Change-Id: I31c553353c50bd52e104544483f788fa902a3202 --- diff --git a/scripts/recovery-init.in b/scripts/recovery-init.in index 75ad2e5..ca640e0 100644 --- a/scripts/recovery-init.in +++ b/scripts/recovery-init.in @@ -16,6 +16,7 @@ RMDIR="/usr/bin/rmdir" TR="/usr/bin/tr" FAKE_ROOT="/system-ro" +HAL_MNT=hal #------------------------------------------------ # mount_usb_partitions #------------------------------------------------ @@ -157,6 +158,9 @@ mount_partitions() { get_partition_id mount_rootfs + if [ ! "z${PART_HAL}" = "z" ]; then + "$MOUNT" -o ro "${PART_HAL}" "${FAKE_ROOT}/${HAL_MNT}" + fi "$MOUNT" -t proc none ${FAKE_ROOT}/proc "$MOUNT" -t sysfs none ${FAKE_ROOT}/sys "$MOUNT" -t devtmpfs devtmpfs ${FAKE_ROOT}/dev