Home | History | Annotate | Download | only in scripts

Lines Matching refs:part_file

391   local part part_file temp_raw filesize
393 part_file=$(create_tempfile "${part}.img.XXXXXX")
394 CLEANUP_FILES+=("${part_file}")
395 unzip -p "${image}" "IMAGES/${part}.img" >"${part_file}"
399 local magic=$(head --bytes=4 "${part_file}" | hexdump -e '1/1 "%.2x"')
404 simg2img "${part_file}" "${temp_raw}"
405 # At this point, we can drop the contents of the old part_file file, but
407 true >"${part_file}"
408 part_file="${temp_raw}"
415 filesize=$(stat -c%s "${part_file}")
424 truncate --size="${filesize}" "${part_file}"
427 eval "${partitions_array}[\"${part}\"]=\"${part_file}\""