diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-10-16 17:25:03 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-12-01 16:39:42 +0000 |
commit | 1d40d2c820df36f030bd2a9adc432ddcf98bdb42 (patch) | |
tree | 1c3404b8aa7a76dc8c2043698e71ba8d8c5e8c99 | |
parent | 1dd0eac8b57b646d5772dce3adfb2d230d19222c (diff) | |
download | morph-1d40d2c820df36f030bd2a9adc432ddcf98bdb42.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.py | 2 |
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.''' |