commit | fc570685c1ca4acb871c706a66d0493b5e92c7c9 | [log] [tgz] |
---|---|---|
author | Benjamin Gordon <[email protected]> | Tue Jul 25 20:15:43 2017 |
committer | chrome-bot <[email protected]> | Fri Jul 28 22:04:27 2017 |
tree | 21174b0ac7e05d74185c20bc2b6bbe321bcd64cb | |
parent | b9b8f1de0ab9d4b0e1739d7c0dc4ec232b85a5c3 [diff] |
rootdev: Strip partitions less aggressively In device names like dm-N or loopN, the N is not a partition number and should not be stripped off. These can arise for example if run inside a chroot mounted on a loopback device. BUG=chromium:748665, chromium:730144 TEST=New unit tests. Change-Id: If7ecacbfcf00690376cb4ffc75baa45422579085 Reviewed-on: https://chromium-review.googlesource.com/585652 Commit-Ready: Benjamin Gordon <[email protected]> Tested-by: Benjamin Gordon <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Mike Frysinger <[email protected]>