]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: set legacy_boot flag for gpt partitions
authorEd Bartosh <ed.bartosh@linux.intel.com>
Tue, 2 Jun 2015 14:01:59 +0000 (17:01 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Jun 2015 22:55:37 +0000 (23:55 +0100)
This flag is used to tell special purpose software that
the GPT partition may be bootable.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/utils/partitionedfs.py

index 1c9e3eab581a64ce190baacdde5912c57f128492..06d4eac0e514a96fc5d3a8e653b82873b3c1c68e 100644 (file)
@@ -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",