[oe-commits] Ed Bartosh : wic: set legacy_boot flag for gpt partitions

git at git.openembedded.org git at git.openembedded.org
Thu Jun 11 23:00:11 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: 3ec5e2892c5ee312c44f4425096450a1914ce44a
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=3ec5e2892c5ee312c44f4425096450a1914ce44a

Author: Ed Bartosh <ed.bartosh at linux.intel.com>
Date:   Tue Jun  2 17:01:59 2015 +0300

wic: set legacy_boot flag for gpt partitions

This flag is used to tell special purpose software that
the GPT partition may be bootable.

Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 scripts/lib/wic/utils/partitionedfs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py
index 1c9e3ea..06d4eac 100644
--- a/scripts/lib/wic/utils/partitionedfs.py
+++ b/scripts/lib/wic/utils/partitionedfs.py
@@ -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",



More information about the Openembedded-commits mailing list