Lines Matching refs:part
434 local part varname
435 for part in kernel root; do
436 varname="${partitions_array}[${part}]"
450 local part="$3"
458 if unzip -l "${image}" "${path}/${part}.img" >/dev/null; then
463 [[ -n "${path_in_zip}" ]] || die "Failed to find ${part}.img"
464 extract_file "${image}" "${path_in_zip}/${part}.img" "${part_file}"
470 local temp_sparse=$(create_tempfile "${part}.sparse.XXXXXX")
471 echo "Converting Android sparse image ${part}.img to RAW."
478 if unzip -l "${image}" "${path_in_zip}/${part}.map" > /dev/null; then
479 extract_file "${image}" "${path_in_zip}/${part}.map" "${part_map_file}"
489 echo "Rounding DOWN partition ${part}.img to a multiple of 4 KiB."
492 echo "Rounding UP partition ${part}.img to a multiple of 4 KiB."
498 echo "Extracted ${partitions_array}[${part}]: ${filesize} bytes"
584 local part
585 for part in "${partitions[@]}"; do
586 local part_file=$(create_tempfile "${part}.img.XXXXXX")
587 local part_map_file=$(create_tempfile "${part}.map.XXXXXX")
590 extract_partition_brillo "${image}" "${partitions_array}" "${part}" \
593 eval "${partitions_array}[\"${part}\"]=\"${part_file}\""
594 eval "${partitions_array}_MAP[\"${part}\"]=\"${part_map_file}\""
606 for part in $(eval "echo \${!${partitions_array}[@]}"); do
607 local path="${partitions_array}[$part]"
609 eval "unset ${partitions_array}[${part}]"
658 local part old_partitions="" new_partitions="" partition_names=""
660 for part in "${PARTITIONS_ORDER[@]}"; do
668 partition_names+="${part}"
669 new_partitions+="${DST_PARTITIONS[${part}]}"
670 if [ "${FLAGS_full_boot}" == "true" ] && [ "${part}" == "boot" ]; then
674 old_partitions+="${SRC_PARTITIONS[${part}]:-}"
676 new_mapfiles+="${DST_PARTITIONS_MAP[${part}]:-}"
677 old_mapfiles+="${SRC_PARTITIONS_MAP[${part}]:-}"
851 for part in "${PARTITIONS_ORDER[@]}"; do
853 echo "Creating temporary target partition ${tmp_part} for ${part}"
855 TMP_PARTITIONS[${part}]=${tmp_part}
856 local FILESIZE=$(stat -c%s "${DST_PARTITIONS[${part}]}")
857 echo "Truncating ${TMP_PARTITIONS[${part}]} to ${FILESIZE}"
858 truncate_file "${TMP_PARTITIONS[${part}]}" "${FILESIZE}"
865 local part old_partitions="" new_partitions="" partition_names=""
866 for part in "${PARTITIONS_ORDER[@]}"; do
872 partition_names+="${part}"
873 new_partitions+="${TMP_PARTITIONS[${part}]}"
874 old_partitions+="${SRC_PARTITIONS[${part}]:-}"
901 for part in "${PARTITIONS_ORDER[@]}"; do
903 if ! cmp "${TMP_PARTITIONS[${part}]}" "${DST_PARTITIONS[${part}]}"; then
907 echo "The new partition (${part}) is ${not_str}valid."
921 local part dst_partitions="" src_partitions=""
922 for part in "${PARTITIONS_ORDER[@]}"; do
927 dst_partitions+="${DST_PARTITIONS[${part}]}"
928 src_partitions+="${SRC_PARTITIONS[${part}]:-}"