mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
69bbf80c8d
commit
d59d876f44
@@ -60,13 +60,8 @@ class BootimgEFIPlugin(SourcePlugin):
|
||||
|
||||
kernel = "/bzImage"
|
||||
|
||||
if cr.ptable_format in ('msdos', 'gpt'):
|
||||
rootstr = cr.rootdev
|
||||
else:
|
||||
raise ImageError("Unsupported partition table format found")
|
||||
|
||||
grubefi_conf += "linux %s root=%s rootwait %s\n" \
|
||||
% (kernel, rootstr, options)
|
||||
% (kernel, cr.rootdev, options)
|
||||
grubefi_conf += "}\n"
|
||||
|
||||
msger.debug("Writing grubefi config %s/hdd/boot/EFI/BOOT/grub.cfg" \
|
||||
@@ -104,16 +99,10 @@ class BootimgEFIPlugin(SourcePlugin):
|
||||
|
||||
kernel = "/bzImage"
|
||||
|
||||
if cr.ptable_format in ('msdos', 'gpt'):
|
||||
rootstr = cr.rootdev
|
||||
else:
|
||||
raise ImageError("Unsupported partition table format found")
|
||||
|
||||
boot_conf = ""
|
||||
boot_conf += "title boot\n"
|
||||
boot_conf += "linux %s\n" % kernel
|
||||
boot_conf += "options LABEL=Boot root=%s %s\n" \
|
||||
% (rootstr, options)
|
||||
boot_conf += "options LABEL=Boot root=%s %s\n" % (cr.rootdev, options)
|
||||
|
||||
msger.debug("Writing gummiboot config %s/hdd/boot/loader/entries/boot.conf" \
|
||||
% cr_workdir)
|
||||
|
||||
Reference in New Issue
Block a user