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/plugins/source/rootfs_pcbios_ext.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/plugins/source/rootfs_pcbios_ext.py')
-rw-r--r-- | scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py b/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py index 90dac05dca..533eaa7bd1 100644 --- a/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py +++ b/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py | |||
@@ -100,12 +100,8 @@ class RootfsPlugin(SourcePlugin): | |||
100 | syslinux_conf += "LABEL linux\n" | 100 | syslinux_conf += "LABEL linux\n" |
101 | syslinux_conf += " KERNEL /boot/bzImage\n" | 101 | syslinux_conf += " KERNEL /boot/bzImage\n" |
102 | 102 | ||
103 | if image_creator.ptable_format in ('msdos', 'gpt'): | 103 | syslinux_conf += " APPEND label=boot root=%s %s\n" % \ |
104 | rootstr = image_creator.rootdev | 104 | (image_creator.rootdev, options) |
105 | else: | ||
106 | raise ImageError("Unsupported partition table format found") | ||
107 | |||
108 | syslinux_conf += " APPEND label=boot root=%s %s\n" % (rootstr, options) | ||
109 | 105 | ||
110 | syslinux_cfg = os.path.join(image_creator.rootfs_dir['ROOTFS_DIR'], "boot", "syslinux.cfg") | 106 | syslinux_cfg = os.path.join(image_creator.rootfs_dir['ROOTFS_DIR'], "boot", "syslinux.cfg") |
111 | msger.debug("Writing syslinux config %s" % syslinux_cfg) | 107 | msger.debug("Writing syslinux config %s" % syslinux_cfg) |