]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/lib/wic/partition.py: do not set FAT size
authorAlexander Kanavin <alex.kanavin@gmail.com>
Sun, 28 Feb 2021 15:37:00 +0000 (16:37 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Mar 2021 20:35:07 +0000 (20:35 +0000)
Modern dosfstools automatically determines the appropriate size
and will error out if something that doesn't make sense is
supplied on the command line.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/partition.py

index 85f9847047585763dd4fb11970fc8e1e42179b34..76d144d12d303d894d5e837923ac8009020d30f0 100644 (file)
@@ -339,8 +339,6 @@ class Partition():
             label_str = "-n %s" % self.label
 
         size_str = ""
-        if self.fstype == 'msdos':
-            size_str = "-F 16" # FAT 16
 
         extraopts = self.mkfs_extraopts or '-S 512'
 
@@ -422,8 +420,6 @@ class Partition():
             label_str = "-n %s" % self.label
 
         size_str = ""
-        if self.fstype == 'msdos':
-            size_str = "-F 16" # FAT 16
 
         extraopts = self.mkfs_extraopts or '-S 512'