Home | History | Annotate | Download | only in image_signing

Lines Matching refs:offset

127 # Returns: offset (in sectors) of partition PARTNUM
170 local offset=$(( $(partoffset "$image" "$partnum") * 512 ))
176 enable_rw_mount "$image" ${offset} 2> /dev/null
179 set -- sudo LC_ALL=C mount -o loop,offset=${offset},${ro} \
229 local offset=$(partoffset "$image" "$partnum")
231 dd if=$image of=$output_file bs=512 skip=$offset count=$size \
241 local offset=$(partoffset "$image" "$partnum")
243 dd if=$input_file of=$image bs=512 seek=$offset count=$size \
250 local offset="${2-0}"
253 if ! is_ext2 "$rootfs" $offset; then
254 echo "enable_rw_mount called on non-ext2 filesystem: $rootfs $offset" 1>&2
263 sudo dd of="$rootfs" seek=$((offset + ro_compat_offset)) \
270 local offset="${2-0}"
274 local sb_value=$(sudo dd if="$rootfs" skip=$((offset + sb_magic_offset)) \
285 local offset="${2-0}"
288 if ! is_ext2 "$rootfs" $offset; then
289 echo "disable_rw_mount called on non-ext2 filesystem: $rootfs $offset" 1>&2
298 sudo dd of="$rootfs" seek=$((offset + ro_compat_offset)) \
304 local offset="${2-0}"
307 if ! is_ext2 "$rootfs" $offset; then
312 local ro_value=$(sudo dd if="$rootfs" skip=$((offset + ro_compat_offset)) \