diff options
Diffstat (limited to 'scripts/lib')
| -rw-r--r-- | scripts/lib/wic/utils/partitionedfs.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index a6e2e4f233..1eb1f015d6 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py | |||
| @@ -294,6 +294,21 @@ class Image(object): | |||
| 294 | self.__create_partition(d['disk'].device, p['type'], | 294 | self.__create_partition(d['disk'].device, p['type'], |
| 295 | parted_fs_type, p['start'], p['size']) | 295 | parted_fs_type, p['start'], p['size']) |
| 296 | 296 | ||
| 297 | if p['part_type']: | ||
| 298 | msger.debug("partition %d: set type UID to %s" % \ | ||
| 299 | (p['num'], p['part_type'])) | ||
| 300 | exec_native_cmd("sgdisk --typecode=%d:%s %s" % \ | ||
| 301 | (p['num'], p['part_type'], | ||
| 302 | d['disk'].device), self.native_sysroot) | ||
| 303 | |||
| 304 | if p['uuid']: | ||
| 305 | msger.debug("partition %d: set UUID to %s" % \ | ||
| 306 | (p['num'], p['uuid'])) | ||
| 307 | exec_native_cmd("sgdisk --partition-guid=%d:%s %s" % \ | ||
| 308 | (p['num'], p['uuid'], | ||
| 309 | d['disk'].device), | ||
| 310 | self.native_sysroot) | ||
| 311 | |||
| 297 | if p['boot']: | 312 | if p['boot']: |
| 298 | flag_name = "legacy_boot" if d['ptable_format'] == 'gpt' else "boot" | 313 | flag_name = "legacy_boot" if d['ptable_format'] == 'gpt' else "boot" |
| 299 | msger.debug("Set '%s' flag for partition '%s' on disk '%s'" % \ | 314 | msger.debug("Set '%s' flag for partition '%s' on disk '%s'" % \ |
