☰
Debian Codegraph
@
3.4.0+ds1-5
/
/
support
/
mender-inventory-rootfs-type
☽
☼
support/mender-inventory-rootfs-type
code
plain
raw
Apache-2.0
2017-2019 Northern.tech AS
debian/copyright
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"