mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00: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:
committed by
Richard Purdie
parent
b7b3e4642c
commit
76f503535f
@@ -61,7 +61,7 @@ class BootimgEFIPlugin(SourcePlugin):
|
|||||||
|
|
||||||
kernel = "/bzImage"
|
kernel = "/bzImage"
|
||||||
|
|
||||||
if cr._ptable_format == 'msdos':
|
if cr._ptable_format in ('msdos', 'gpt'):
|
||||||
rootstr = rootdev
|
rootstr = rootdev
|
||||||
else:
|
else:
|
||||||
raise ImageError("Unsupported partition table format found")
|
raise ImageError("Unsupported partition table format found")
|
||||||
@@ -106,7 +106,7 @@ class BootimgEFIPlugin(SourcePlugin):
|
|||||||
|
|
||||||
kernel = "/bzImage"
|
kernel = "/bzImage"
|
||||||
|
|
||||||
if cr._ptable_format == 'msdos':
|
if cr._ptable_format in ('msdos', 'gpt'):
|
||||||
rootstr = rootdev
|
rootstr = rootdev
|
||||||
else:
|
else:
|
||||||
raise ImageError("Unsupported partition table format found")
|
raise ImageError("Unsupported partition table format found")
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ class BootimgPcbiosPlugin(SourcePlugin):
|
|||||||
kernel = "/vmlinuz"
|
kernel = "/vmlinuz"
|
||||||
syslinux_conf += "KERNEL " + kernel + "\n"
|
syslinux_conf += "KERNEL " + kernel + "\n"
|
||||||
|
|
||||||
if cr._ptable_format == 'msdos':
|
if cr._ptable_format in ('msdos', 'gpt'):
|
||||||
rootstr = rootdev
|
rootstr = rootdev
|
||||||
else:
|
else:
|
||||||
raise ImageError("Unsupported partition table format found")
|
raise ImageError("Unsupported partition table format found")
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ class RootfsPlugin(SourcePlugin):
|
|||||||
syslinux_conf += "LABEL linux\n"
|
syslinux_conf += "LABEL linux\n"
|
||||||
syslinux_conf += " KERNEL /boot/bzImage\n"
|
syslinux_conf += " KERNEL /boot/bzImage\n"
|
||||||
|
|
||||||
if image_creator._ptable_format == 'msdos':
|
if image_creator._ptable_format in ('msdos', 'gpt'):
|
||||||
rootstr = rootdev
|
rootstr = rootdev
|
||||||
else:
|
else:
|
||||||
raise ImageError("Unsupported partition table format found")
|
raise ImageError("Unsupported partition table format found")
|
||||||
|
|||||||
Reference in New Issue
Block a user