Lines Matching full:rootfs
18 # The tag when the rootfs is changed.
368 local rootfs="$1"
373 if ! is_ext2 "$rootfs" $offset; then
374 echo "enable_rw_mount called on non-ext2 filesystem: $rootfs $offset" 1>&2
383 sudo dd of="$rootfs" seek=$((offset + ro_compat_offset)) \
389 local rootfs="$1"
394 local sb_value=$(sudo dd if="$rootfs" skip=$((offset + sb_magic_offset)) \
404 local rootfs="$1"
409 if ! is_ext2 "$rootfs" $offset; then
410 echo "disable_rw_mount called on non-ext2 filesystem: $rootfs $offset" 1>&2
419 sudo dd of="$rootfs" seek=$((offset + ro_compat_offset)) \
424 local rootfs="$1"
429 if ! is_ext2 "$rootfs" $offset; then
434 local ro_value=$(sudo dd if="$rootfs" skip=$((offset + ro_compat_offset)) \
507 # Args: rootfs
509 local rootfs=$1
511 if grep -qs '^chronos:' "${rootfs}/etc/passwd"; then
512 sudo grep -q '^chronos:\*:' "${rootfs}/etc/shadow"