Adds support for the block device size to be asserted for the purpose of
writing out new images, which may be critical for operators with hardware
which requires logical blocks which are 4096 bytes long.
Change-Id: I5c16a042eacfbb94a905b93a0eb9fbc73de0a890