Fix mkfs use wrong label option for vfat
For vfat type, mkfs should use '-n' option for label. e.g.: mkfs -t vfat -n LABEL-STRING Change-Id: I1414c5b8e0aeb240c3e6884e35ba75dde677db0c
This commit is contained in:
parent
18a0d970fa
commit
178db0c97b
@ -109,6 +109,10 @@ class FilesystemNode(NodeBase):
|
||||
cmd.extend(['-t', self.type])
|
||||
if self.opts:
|
||||
cmd.extend(self.opts)
|
||||
|
||||
if self.type == "vfat":
|
||||
cmd.extend(["-n", self.label])
|
||||
else:
|
||||
cmd.extend(["-L", self.label])
|
||||
|
||||
if self.type in ('ext2', 'ext3', 'ext4'):
|
||||
|
Loading…
Reference in New Issue
Block a user