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-19 18:37:45 +0000
commit75484146362857872bd6b333d3d704a6a3947164 (patch)
tree9b4a62c07a4238862f85050742f960c345ebc093
parentf90aed1f521f8218d5f8924f977ccf2e6ffef142 (diff)
downloadmorph-75484146362857872bd6b333d3d704a6a3947164.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 48c9434e..4b9e4fcd 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')
- 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.'''