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.

Change-Id: Ica82dc150e403d0e49e4d8074c0b920b20e4cccc
Commit-Ready: Paul Taysom <>
Reviewed-by: Paul Taysom <>
Tested-by: Paul Taysom <>
2 files changed