summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2013-10-15 14:46:23 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-16 13:31:37 +0100
commitc7b01650880a6b1df0bc70cc65dd31cd1a1abb8e (patch)
treedce79bb74817fcf8ecd7398696f41890761cd810 /scripts
parent72b5535ff2fa647a1fff254f2fab096f7f54d366 (diff)
downloadpoky-c7b01650880a6b1df0bc70cc65dd31cd1a1abb8e.tar.gz
wic: Force lba off for FAT16 partitions
If fat16 is specified to the mkpart parted command, parted will default to setting the lba flag which causes certain EFI firmware to fail to detect the filesystem. lba shouldn't be necessary for FAT16 filesystems anyway, explicitly disable it. (From OE-Core rev: 30442d432e203e655b7d40b93f7307f475de1614) Signed-off-by: Darren Hart <dvhart@linux.intel.com> Cc: Tom Zanussi <tom.zanussi@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/mic/utils/partitionedfs.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/lib/mic/utils/partitionedfs.py b/scripts/lib/mic/utils/partitionedfs.py
index e8cded26e0..59263ba1a5 100644
--- a/scripts/lib/mic/utils/partitionedfs.py
+++ b/scripts/lib/mic/utils/partitionedfs.py
@@ -352,6 +352,16 @@ class PartitionedMount(Mount):
352 self.__run_parted(["-s", d['disk'].device, "set", 352 self.__run_parted(["-s", d['disk'].device, "set",
353 "%d" % p['num'], flag_name, "on"]) 353 "%d" % p['num'], flag_name, "on"])
354 354
355 # Parted defaults to enabling the lba flag for fat16 partitions,
356 # which causes compatibility issues with some firmware (and really
357 # isn't necessary).
358 if parted_fs_type == "fat16":
359 if d['ptable_format'] == 'msdos':
360 msger.debug("Disable 'lba' flag for partition '%s' on disk '%s'" % \
361 (p['num'], d['disk'].device))
362 self.__run_parted(["-s", d['disk'].device, "set",
363 "%d" % p['num'], "lba", "off"])
364
355 # If the partition table format is "gpt", find out PARTUUIDs for all 365 # If the partition table format is "gpt", find out PARTUUIDs for all
356 # the partitions. And if users specified custom parition type UUIDs, 366 # the partitions. And if users specified custom parition type UUIDs,
357 # set them. 367 # set them.