[OE-core] [wic][PATCH 1/7] wic: set legacy_boot flag for gpt partitions
Ed Bartosh
ed.bartosh at linux.intel.com
Tue Jun 2 14:01:59 UTC 2015
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>
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",
--
2.1.4
More information about the Openembedded-core
mailing list