Lines Matching full:local
72 local tempfile=$(mktemp)
81 local tempdir=$(mktemp -d)
114 local block="$1"
115 local num="$2"
142 local mount_dir="$1"
150 local mount_dir="$1"
158 local mount_dir="$1"
166 local image=$1
167 local partnum=$2
168 local mount_dir=$3
169 local ro=$4
170 local offset=$(( $(partoffset "$image" "$partnum") * 512 ))
171 local out try
207 # Mount a partition read-only from an image into a local directory
213 # Mount a partition from an image into a local directory
216 local mount_dir=$3
226 local image=$1
227 local partnum=$2
228 local output_file=$3
229 local offset=$(partoffset "$image" "$partnum")
230 local size=$(partsize "$image" "$partnum")
238 local image=$1
239 local partnum=$2
240 local input_file=$3
241 local offset=$(partoffset "$image" "$partnum")
242 local size=$(partsize "$image" "$partnum")
249 local rootfs="$1"
250 local offset="${2-0}"
258 local ro_compat_offset=$((0x464 + 3)) # Set 'highest' byte
269 local rootfs="$1"
270 local offset="${2-0}"
273 local sb_magic_offset=$((0x438))
274 local sb_value=$(sudo dd if="$rootfs" skip=$((offset + sb_magic_offset)) \
276 local expected_sb_value=$(printf '\123\357')
284 local rootfs="$1"
285 local offset="${2-0}"
293 local ro_compat_offset=$((0x464 + 3)) # Set 'highest' byte
303 local rootfs="$1"
304 local offset="${2-0}"
311 local ro_compat_offset=$((0x464 + 3)) # Set 'highest' byte
312 local ro_value=$(sudo dd if="$rootfs" skip=$((offset + ro_compat_offset)) \
314 local expected_ro_value=$(printf '\377')
327 local filename return_value=0
341 local rootfs=$1