diff options
-rw-r--r-- | scripts/lib/wic/partition.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index d59351c500..6f324ad5b3 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py | |||
@@ -305,7 +305,12 @@ class Partition(): | |||
305 | if self.label: | 305 | if self.label: |
306 | label_str = "-n %s" % self.label | 306 | label_str = "-n %s" % self.label |
307 | 307 | ||
308 | dosfs_cmd = "mkdosfs %s -S 512 -C %s %d" % (label_str, rootfs, rootfs_size) | 308 | size_str = "" |
309 | if self.fstype == 'msdos': | ||
310 | size_str = "-F 16" # FAT 16 | ||
311 | |||
312 | dosfs_cmd = "mkdosfs %s -S 512 %s -C %s %d" % (label_str, size_str, | ||
313 | rootfs, rootfs_size) | ||
309 | exec_native_cmd(dosfs_cmd, native_sysroot) | 314 | exec_native_cmd(dosfs_cmd, native_sysroot) |
310 | 315 | ||
311 | mcopy_cmd = "mcopy -i %s -s %s/* ::/" % (rootfs, rootfs_dir) | 316 | mcopy_cmd = "mcopy -i %s -s %s/* ::/" % (rootfs, rootfs_dir) |
@@ -372,7 +377,12 @@ class Partition(): | |||
372 | if self.label: | 377 | if self.label: |
373 | label_str = "-n %s" % self.label | 378 | label_str = "-n %s" % self.label |
374 | 379 | ||
375 | dosfs_cmd = "mkdosfs %s -S 512 -C %s %d" % (label_str, rootfs, blocks) | 380 | size_str = "" |
381 | if self.fstype == 'msdos': | ||
382 | size_str = "-F 16" # FAT 16 | ||
383 | |||
384 | dosfs_cmd = "mkdosfs %s -S 512 %s -C %s %d" % (label_str, size_str, | ||
385 | rootfs, blocks) | ||
376 | exec_native_cmd(dosfs_cmd, native_sysroot) | 386 | exec_native_cmd(dosfs_cmd, native_sysroot) |
377 | 387 | ||
378 | chmod_cmd = "chmod 644 %s" % rootfs | 388 | chmod_cmd = "chmod 644 %s" % rootfs |