From b812d0f40423bc56394cc8b6fc92eb1f477dba1b Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Fri, 5 Jun 2015 12:54:08 +0300 Subject: wic: Move validation of --ptable option to wks parser bootloader --ptable option has two valid choices: gpt and msdos Moved this check to wks parser by changing option type to 'choice'. Removed similar checks from 5 other places. Signed-off-by: Ed Bartosh Signed-off-by: Ross Burton --- scripts/lib/wic/utils/partitionedfs.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'scripts/lib/wic/utils') diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index 1eb1f015d6..e093ec5778 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py @@ -122,10 +122,6 @@ class Image(object): msger.debug("Assigning %s partitions to disks" % ptable_format) - if ptable_format not in ('msdos', 'gpt'): - raise ImageError("Unknown partition table format '%s', supported " \ - "formats are: 'msdos'" % ptable_format) - if self._partitions_layed_out: return -- cgit v1.2.3