diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-06-05 12:54:08 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-11 23:59:13 +0100 |
commit | d59d876f447c961149763e585c012ac2f0f7b788 (patch) | |
tree | 6d12fe19eff3a1f1212196b319d6f3a9fe887775 /scripts/lib/wic/utils/partitionedfs.py | |
parent | 69bbf80c8df21f93e294d21bf76ad3d0106a43e9 (diff) | |
download | poky-d59d876f447c961149763e585c012ac2f0f7b788.tar.gz |
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.
(From OE-Core rev: b812d0f40423bc56394cc8b6fc92eb1f477dba1b)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/utils/partitionedfs.py')
-rw-r--r-- | scripts/lib/wic/utils/partitionedfs.py | 4 |
1 files changed, 0 insertions, 4 deletions
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): | |||
122 | 122 | ||
123 | msger.debug("Assigning %s partitions to disks" % ptable_format) | 123 | msger.debug("Assigning %s partitions to disks" % ptable_format) |
124 | 124 | ||
125 | if ptable_format not in ('msdos', 'gpt'): | ||
126 | raise ImageError("Unknown partition table format '%s', supported " \ | ||
127 | "formats are: 'msdos'" % ptable_format) | ||
128 | |||
129 | if self._partitions_layed_out: | 125 | if self._partitions_layed_out: |
130 | return | 126 | return |
131 | 127 | ||