Change-Id: Ib60092ae7d822ed8a67f062cc67a50df742a880f
#------------------------------------------------
get_partition_id
+
+if [ "${P_SLOT}" != "" ]
+then
+ log "[Info] FOTA with A/B detected - skip RO update"
+ exec /sbin/fus_rw-init
+fi
+
prepare_fakeroot
if ! mount_partitions ; then
log_boot_info
-if [ "${P_SLOT}" != "" ]
-then
- log "[Info] FOTA with A/B detected - skip RO update"
-
- UPGRADE_SUCCESS=1
- umount_partitions
- exec /sbin/fus_rw-init
-fi
-
# For debugging - It should be deleted on Release
/sbin/agetty -l /bin/bash -n --keep-baud 115200,38400,9600 console linux &
fi
do_reboot
}
+#------------------------------------------------
+# prepare_fakeroot
+#------------------------------------------------
+prepare_fakeroot() {
+ mkdir -p ${FAKE_ROOT}
+}
#------------------------------------------------
# Main Routine Start
#------------------------------------------------
+prepare_fakeroot
mount_partitions
echo "rw update mode start ..." >> ${INT_LOG_FILE}