Merge "Fix mkfs use wrong label option for vfat"
This commit is contained in:
commit
c1facd7980
@ -109,6 +109,10 @@ class FilesystemNode(NodeBase):
|
|||||||
cmd.extend(['-t', self.type])
|
cmd.extend(['-t', self.type])
|
||||||
if self.opts:
|
if self.opts:
|
||||||
cmd.extend(self.opts)
|
cmd.extend(self.opts)
|
||||||
|
|
||||||
|
if self.type == "vfat":
|
||||||
|
cmd.extend(["-n", self.label])
|
||||||
|
else:
|
||||||
cmd.extend(["-L", self.label])
|
cmd.extend(["-L", self.label])
|
||||||
|
|
||||||
if self.type in ('ext2', 'ext3', 'ext4'):
|
if self.type in ('ext2', 'ext3', 'ext4'):
|
||||||
|
Loading…
Reference in New Issue
Block a user