diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2014-06-14 17:52:59 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2014-06-14 17:52:59 +0300 |
commit | 84ac5df57bee8757e897b19faf2369e2dc8c1858 (patch) | |
tree | a9cbaa69fd0b28461eeb0d4218e25be1fc4a8b02 | |
parent | 0c28539742ead845da3c08bae63be5af9a71d0d7 (diff) |
sgdisk requires a block device
Return an error if an image file is used in conjunction with GPT partition
table. "--part-table gpt" should be explicitely used with "--mmc device".
Change-Id: I4c9763ab259864de8a6a207101bef77fe248b90a
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
-rwxr-xr-x | linaro-media-create | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linaro-media-create b/linaro-media-create index 727c8ff..8fc0d89 100755 --- a/linaro-media-create +++ b/linaro-media-create @@ -164,6 +164,10 @@ if __name__ == '__main__': logger.error("Do not use --no-boot or --no-part in conjunction with " "--image_file.") sys.exit(1) + elif args.part_table == 'gpt': + logger.error("Do not use --part-table gpt in conjunction with " + "--image_file.") + sys.exit(1) # If --help was specified this won't execute. # Create temp dir and initialize rest of path vars. |