Add CreatePartitionIfNoEphemeralDisk option

As yet unimplemented

[#75939098]
Add root device partitioner

[#75939098]
Add GetRemainingSizeInMb to parted partitioner

[#75939098]
Use parted partioner

[#75939098]

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Don't fail if we can't find the ephemeral disk

Instead we will create a partition on the root device

[#75939098]

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Refactor linux platform

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Add logging when setting up ephemeral disk

[#75939098]

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Parted partitioner checks if existing size is within the delta

[#75939098]

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Change Partitioner interface to accept bytes

[#75939098]

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Change root device partitioner to use Partitioner interface

[#75939098]

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Rename partedPartitioner to rootDevicePartitioner

[#75939098]

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Only check for root device that starts with /dev/

[#75939098]

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Partitions include their end byte

The following partition should start on the next byte.

[#75939098]

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Remove all existing partitions if any do not match

[#75939098]

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Extract permissions in LinuxPlatform to constants

Signed-off-by: Adam Stegman <astegman@pivotal.io>
Refactor logger_test

Signed-off-by: Adam Stegman <astegman@pivotal.io>
Add warn level to logger

Signed-off-by: Adam Stegman <astegman@pivotal.io>
Allow an error to be passed as the last argument to the logger

Signed-off-by: Adam Stegman <astegman@pivotal.io>
Do not create ephemeral partitions on root device if not enough space is available

[#75939098]

Signed-off-by: Adam Stegman <astegman@pivotal.io>
Do not setup ephemeral disk when data directory is not empty

[#75939098]

Signed-off-by: Adam Stegman <astegman@pivotal.io>