Modified rootdev to handle stacked device mappers
Rootdev only went down one level when traversing the device tree.
With the addition of the bootcache device mapper, we need to
go multiple levels for the -s option for rootdev.
TEST=used it with bootcache to find boot device.
Commit-Ready: Paul Taysom <firstname.lastname@example.org>
Reviewed-by: Paul Taysom <email@example.com>
Tested-by: Paul Taysom <firstname.lastname@example.org>
2 files changed