summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/plugins')
-rw-r--r--scripts/lib/wic/plugins/imager/direct.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py
index 79b948a739..f2e6127331 100644
--- a/scripts/lib/wic/plugins/imager/direct.py
+++ b/scripts/lib/wic/plugins/imager/direct.py
@@ -487,6 +487,8 @@ class PartitionedImage():
487 parted_fs_type = "fat32" 487 parted_fs_type = "fat32"
488 elif part.fstype == "msdos": 488 elif part.fstype == "msdos":
489 parted_fs_type = "fat16" 489 parted_fs_type = "fat16"
490 if not part.system_id:
491 part.system_id = '0x6' # FAT16
490 else: 492 else:
491 # Type for ext2/ext3/ext4/btrfs 493 # Type for ext2/ext3/ext4/btrfs
492 parted_fs_type = "ext2" 494 parted_fs_type = "ext2"
@@ -536,17 +538,6 @@ class PartitionedImage():
536 (self.path, part.num, part.system_id), 538 (self.path, part.num, part.system_id),
537 self.native_sysroot) 539 self.native_sysroot)
538 540
539 # Parted defaults to enabling the lba flag for fat16 partitions,
540 # which causes compatibility issues with some firmware (and really
541 # isn't necessary).
542 if parted_fs_type == "fat16":
543 if self.ptable_format == 'msdos':
544 logger.debug("Disable 'lba' flag for partition '%s' on disk '%s'",
545 part.num, self.path)
546 exec_native_cmd("parted -s %s set %d lba off" % \
547 (self.path, part.num),
548 self.native_sysroot)
549
550 def cleanup(self): 541 def cleanup(self):
551 # remove partition images 542 # remove partition images
552 for image in set(self.partimages): 543 for image in set(self.partimages):