Check configdrive size before writing to partition

Avoids writing a configdrive out to disk that is larger than
the intended partition.

Change-Id: I4e067ccb23ba528d96e4faad39219f67b4178e82
Merge "Check configdrive size before writing to partition"