block: support finding root device by mount point
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 17 Feb 2015 19:27:59 +0000 (20:27 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 17 Feb 2015 21:01:22 +0000 (22:01 +0100)
commit17fec3a09b65e09311042cff037bf97ce28ef693
tree9eb0f09f368de708f3e3cdc7fdf484c57594213e
parentc8b51499261146cae10270ca2dd7dcc637a2d509
block: support finding root device by mount point

When checking extroot, fall back to using stat(/) to determine the root
device node if no rootfs MTD partition can be found, e.g. on systems using
an ext4 root filesystem.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
block.c