Hint at sector sizes when reporting an invalid written image
Change-Id: Iee7f22e9958b68f263d267c434678478b9a38648 Signed-off-by: Dmitry Tantsur <dtantsur@protonmail.com>
This commit is contained in:
1 changed files with 2 additions and 1 deletions
@@ -843,7 +843,8 @@ def _validate_partitioning(device):
except (processutils.UnknownArgumentError,
processutils.ProcessExecutionError, OSError) as e:
msg = ("Unable to find a valid partition table on the disk after "
f"writing the image. The image may be corrupted. Error: {e}")
"writing the image. The image may be corrupted or it uses a "
f"different sector size than the device. Error: {e}")
raise errors.DeploymentError(msg)
# Check if there is at least one partition in the partition table after
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.