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:55:40 +0100 |
commit | b812d0f40423bc56394cc8b6fc92eb1f477dba1b (patch) | |
tree | 09b0c8c596829f712cddbca8486ab1bfa6d2ab02 /scripts/lib/wic/kickstart/custom_commands | |
parent | e21e31b48b20bf2f8a7733c52b436a65c27de8aa (diff) | |
download | openembedded-core-b812d0f40423bc56394cc8b6fc92eb1f477dba1b.tar.gz openembedded-core-b812d0f40423bc56394cc8b6fc92eb1f477dba1b.tar.bz2 openembedded-core-b812d0f40423bc56394cc8b6fc92eb1f477dba1b.zip |
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 <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/wic/kickstart/custom_commands')
-rw-r--r-- | scripts/lib/wic/kickstart/custom_commands/micboot.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/wic/kickstart/custom_commands/micboot.py b/scripts/lib/wic/kickstart/custom_commands/micboot.py index d162142506..358b0ea9cd 100644 --- a/scripts/lib/wic/kickstart/custom_commands/micboot.py +++ b/scripts/lib/wic/kickstart/custom_commands/micboot.py @@ -44,6 +44,7 @@ class Mic_Bootloader(F8_Bootloader): def _getParser(self): op = F8_Bootloader._getParser(self) op.add_option("--menus", dest="menus") - op.add_option("--ptable", dest="ptable", type="string") + op.add_option("--ptable", dest="ptable", choices=("msdos", "gpt"), + default="msdos") return op |