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-12-01 16:39:42 +0000
commit27af6089593df7d7a422a45f19f2456870832c93 (patch)
treef888e298daeb6e882e42d9c3e567090f749355e2
parent10e6486de6f6f45a19bcd6099d7830718a9d12a8 (diff)
downloaddefinitions-27af6089593df7d7a422a45f19f2456870832c93.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--writeexts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/writeexts.py b/writeexts.py
index 48c9434e..4b9e4fcd 100644
--- a/writeexts.py
+++ b/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.'''