~smoser/curtin/trunk.lp1551937

Viewing all changes in revision 351.

  • Committer: Scott Moser
  • Date: 2016-02-12 17:41:37 UTC
  • mfrom: (349.2.5 curtin-1543263)
  • Revision ID: smoser@ubuntu.com-20160212174137-erf1y5vjp6qfhsed
partitioning: limited support for odd ordering of partition numbers

This fixes a bug in the partitioning code where it assumes that the
previous partition is numbered N-1. That is not always the case.
The change here is very focused on:
 a.) Being non-invasive.
 b.) fixing bug 1543263 and allowing maas to send configuration
     for power that "hides" the PReP partition as number 15
     so they don't have to really show it to the user.

Ultimately, we want to re-write the partitioning code to walk
through the storage config and correctly fill in number, start
and end for each entry. That is a more invasive and time-consuming
change though.

This also adds another disk to examples/tests/basic.yaml
and tests that it is partitioned as expected in
tests/vmtests/test_lvm.py

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: