Debian Codegraph @

support/mender-inventory-rootfs-type

raw
1 #!/bin/sh
2
3 # Determines what the root filesystem type is.
4
5 FS_TYPE="$(grep ' / ' /proc/mounts | grep -v "^rootfs" | awk '{print $3}')"
6 if [ -z "${FS_TYPE}" ]; then
7 FS_TYPE=Unknown
8 fi
9 echo rootfs_type="$FS_TYPE"