wic: set legacy_boot flag for gpt partitions
This flag is used to tell special purpose software that the GPT partition may be bootable. (From OE-Core rev: 3ec5e2892c5ee312c44f4425096450a1914ce44a) 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
e5a11759d8
commit
0a13707513
|
@ -312,7 +312,7 @@ class Image:
|
|||
parted_fs_type, p['start'], p['size'])
|
||||
|
||||
if p['boot']:
|
||||
flag_name = "boot"
|
||||
flag_name = "legacy_boot" if d['ptable_format'] == 'gpt' else "boot"
|
||||
msger.debug("Set '%s' flag for partition '%s' on disk '%s'" % \
|
||||
(flag_name, p['num'], d['disk'].device))
|
||||
self.__run_parted(["-s", d['disk'].device, "set",
|
||||
|
|
Loading…
Reference in New Issue