summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins/source/bootimg-pcbios.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-06-05 12:54:08 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-11 23:59:13 +0100
commitd59d876f447c961149763e585c012ac2f0f7b788 (patch)
tree6d12fe19eff3a1f1212196b319d6f3a9fe887775 /scripts/lib/wic/plugins/source/bootimg-pcbios.py
parent69bbf80c8df21f93e294d21bf76ad3d0106a43e9 (diff)
downloadpoky-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/bootimg-pcbios.py')
-rw-r--r--scripts/lib/wic/plugins/source/bootimg-pcbios.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py
index dd49480141..5caffbc8e2 100644
--- a/scripts/lib/wic/plugins/source/bootimg-pcbios.py
+++ b/scripts/lib/wic/plugins/source/bootimg-pcbios.py
@@ -103,12 +103,8 @@ class BootimgPcbiosPlugin(SourcePlugin):
103 kernel = "/vmlinuz" 103 kernel = "/vmlinuz"
104 syslinux_conf += "KERNEL " + kernel + "\n" 104 syslinux_conf += "KERNEL " + kernel + "\n"
105 105
106 if cr.ptable_format in ('msdos', 'gpt'): 106 syslinux_conf += "APPEND label=boot root=%s %s\n" % \
107 rootstr = cr.rootdev 107 (cr.rootdev, options)
108 else:
109 raise ImageError("Unsupported partition table format found")
110
111 syslinux_conf += "APPEND label=boot root=%s %s\n" % (rootstr, options)
112 108
113 msger.debug("Writing syslinux config %s/hdd/boot/syslinux.cfg" \ 109 msger.debug("Writing syslinux config %s/hdd/boot/syslinux.cfg" \
114 % cr_workdir) 110 % cr_workdir)