Lines Matching refs:rootfs
249 local rootfs="$1"
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)) \
269 local rootfs="$1"
274 local sb_value=$(sudo dd if="$rootfs" skip=$((offset + sb_magic_offset)) \
284 local rootfs="$1"
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)) \
303 local rootfs="$1"
307 if ! is_ext2 "$rootfs" $offset; then
312 local ro_value=$(sudo dd if="$rootfs" skip=$((offset + ro_compat_offset)) \
341 local rootfs=$1
342 sudo grep -q '^chronos:\*:' "$rootfs/etc/shadow"