From 27af6089593df7d7a422a45f19f2456870832c93 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Thu, 16 Oct 2014 17:25:03 +0000 Subject: 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. --- writeexts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.''' -- cgit v1.2.1