partitionedfs: fix the mbr_sector_skipped hack
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 4 Jan 2013 12:35:25 +0000 (14:35 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Thu, 10 Jan 2013 12:13:17 +0000 (14:13 +0200)
commit1cd3ebdea0dbcc074587b0391dcb955e2f803be4
treee5cacdfdc7a97ff35edfe55334aed54fa9abbbe0
parent416d3c565c7ec3426541246c32ad8d81f12ed77e
partitionedfs: fix the mbr_sector_skipped hack

The entire PartitionedMount class assumes there may be more than one disk. And
the 'mbr_sector_skipped' hack is wrong because it assumes there is only one
disk and we need to skip only once, which is incorrect.

This patch fixes the issue. And it actually makes things nicer as well.

Change-Id: Icb399cfa488786ce6668ffaa21146f01a3e15a08
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
mic/utils/partitionedfs.py