Use lsblk to attempt to guess partition's fs type
authorPhilippe Coval <rzr@gna.org>
Fri, 20 Jan 2017 12:25:24 +0000 (12:25 +0000)
committerColin Watson <cjwatson@debian.org>
Fri, 20 Jan 2017 12:25:24 +0000 (12:25 +0000)
commitf05dc5591843299dde886e6663cb1660c3a2f1d1
tree55049bda4c480feb3eb4728b74579005f6a85d7f
parent8e8f9fbcc42be11c7265ae383aeeeb6a179dd93b
Use lsblk to attempt to guess partition's fs type

If not found it will fall back to other tools.

Note that fs_type function is not expected to return a non-zero error
code even if it failed to detect the type.

If filesystem is undetermined then "NOT-DETECTED" will be echoed.

This change will prevent mount hanging on extended partitions (#768902).

Signed-off-by: Philippe Coval <rzr@gna.org>
Tweaked-by: Colin Watson <cjwatson@debian.org>
Bug-Debian: 768902
common.sh
debian/changelog
linux-boot-probes/common/50mounted-tests
os-probes/common/50mounted-tests