mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
wic: Add gpt to the list of supported partition table formats
Only msdos partition table format was supported by wic source plugins. (From OE-Core rev: 0e119d469796a19fbeae61a7162fd70660c936a5) 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:
parent
b7b3e4642c
commit
76f503535f
|
@ -61,7 +61,7 @@ class BootimgEFIPlugin(SourcePlugin):
|
|||
|
||||
kernel = "/bzImage"
|
||||
|
||||
if cr._ptable_format == 'msdos':
|
||||
if cr._ptable_format in ('msdos', 'gpt'):
|
||||
rootstr = rootdev
|
||||
else:
|
||||
raise ImageError("Unsupported partition table format found")
|
||||
|
@ -106,7 +106,7 @@ class BootimgEFIPlugin(SourcePlugin):
|
|||
|
||||
kernel = "/bzImage"
|
||||
|
||||
if cr._ptable_format == 'msdos':
|
||||
if cr._ptable_format in ('msdos', 'gpt'):
|
||||
rootstr = rootdev
|
||||
else:
|
||||
raise ImageError("Unsupported partition table format found")
|
||||
|
|
|
@ -100,7 +100,7 @@ class BootimgPcbiosPlugin(SourcePlugin):
|
|||
kernel = "/vmlinuz"
|
||||
syslinux_conf += "KERNEL " + kernel + "\n"
|
||||
|
||||
if cr._ptable_format == 'msdos':
|
||||
if cr._ptable_format in ('msdos', 'gpt'):
|
||||
rootstr = rootdev
|
||||
else:
|
||||
raise ImageError("Unsupported partition table format found")
|
||||
|
|
|
@ -101,7 +101,7 @@ class RootfsPlugin(SourcePlugin):
|
|||
syslinux_conf += "LABEL linux\n"
|
||||
syslinux_conf += " KERNEL /boot/bzImage\n"
|
||||
|
||||
if image_creator._ptable_format == 'msdos':
|
||||
if image_creator._ptable_format in ('msdos', 'gpt'):
|
||||
rootstr = rootdev
|
||||
else:
|
||||
raise ImageError("Unsupported partition table format found")
|
||||
|
|
Loading…
Reference in New Issue
Block a user