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-11 11:45:19 +0000
commita874020db3c9087c35d4ea419ae6187bb7741a3a (patch)
tree6ab971d993bae6c085983eba4c71dc0d63a9bdd5
parent699695bd19b492a878c70fd8d4e68e7e3cfe3497 (diff)
downloadmorph-a874020db3c9087c35d4ea419ae6187bb7741a3a.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 e1beb10e..5bda62f1 100644
--- a/morphlib/writeexts.py
+++ b/morphlib/writeexts.py
@@ -226,7 +226,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.'''