From f3b02b4d6f069eaff3977bc061b6ab3ffb6baa8b 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. --- morphlib/writeexts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.''' -- cgit v1.2.1