summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-03-30 17:18:03 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-31 12:12:22 +0100
commit230452faf151e277bfb2b49526923f8097755b35 (patch)
tree05416cabc7036038e07f4ec2069ca9699a99e345 /scripts
parentb6243a03ced9a719a5801afcee014b03313cc43c (diff)
downloadopenembedded-core-230452faf151e277bfb2b49526923f8097755b35.tar.gz
openembedded-core-230452faf151e277bfb2b49526923f8097755b35.tar.bz2
openembedded-core-230452faf151e277bfb2b49526923f8097755b35.zip
wic: set correct system id for msdos partitions
Explicitly set system id 0x6(FAT16) for msdos partitions. Removed old code that attempts to achieve the same result using 'parted ... lba off'. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts')
-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():
parted_fs_type = "fat32"
elif part.fstype == "msdos":
parted_fs_type = "fat16"
+ if not part.system_id:
+ part.system_id = '0x6' # FAT16
else:
# Type for ext2/ext3/ext4/btrfs
parted_fs_type = "ext2"
@@ -536,17 +538,6 @@ class PartitionedImage():
(self.path, part.num, part.system_id),
self.native_sysroot)
- # Parted defaults to enabling the lba flag for fat16 partitions,
- # which causes compatibility issues with some firmware (and really
- # isn't necessary).
- if parted_fs_type == "fat16":
- if self.ptable_format == 'msdos':
- logger.debug("Disable 'lba' flag for partition '%s' on disk '%s'",
- part.num, self.path)
- exec_native_cmd("parted -s %s set %d lba off" % \
- (self.path, part.num),
- self.native_sysroot)
-
def cleanup(self):
# remove partition images
for image in set(self.partimages):