summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-10-16 17:25:03 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-11-10 10:57:38 +0000
commitf3b02b4d6f069eaff3977bc061b6ab3ffb6baa8b (patch)
tree92d36762adedf4bab0cf937efc8989a78c3f9899
parent1e0ce31061f0e366822e82f1818280020c8bc46d (diff)
downloadmorph-f3b02b4d6f069eaff3977bc061b6ab3ffb6baa8b.tar.gz
Add force flag to 'mkfs.btrfs'
This way when deploying to a device it will format it without asking the user if the device already has format.
-rw-r--r--morphlib/writeexts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/writeexts.py b/morphlib/writeexts.py
index c78fe09e..86dc4b61 100644
--- a/morphlib/writeexts.py
+++ b/morphlib/writeexts.py
@@ -224,7 +224,7 @@ class WriteExtension(cliapp.Application):
def mkfs_btrfs(self, location):
'''Create a btrfs filesystem on the disk.'''
self.status(msg='Creating btrfs filesystem in %s' % location)
- cliapp.runcmd(['mkfs.btrfs', '-L', 'baserock', location])
+ cliapp.runcmd(['mkfs.btrfs', '-f', '-L', 'baserock', location])
def get_uuid(self, location):
'''Get the UUID of a block device's file system.'''