summaryrefslogtreecommitdiff
path: root/morphlib/fsutils.py
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2015-11-11 09:19:18 +0000
committerBaserock Gerrit <gerrit@baserock.org>2015-11-20 16:44:33 +0000
commitb549c36dd6359aa22f8636bee7204c4df338b4f6 (patch)
tree8b36eadbe404f4925637b1b0292c0523a1540a93 /morphlib/fsutils.py
parentfad8048de66fe6aeaa0478864914bb773f51ed3e (diff)
downloadmorph-b549c36dd6359aa22f8636bee7204c4df338b4f6.tar.gz
Remove old cruft
Static analysis showed this code is not being used, and we can always bring it back if necessary through git. Change-Id: Id8bf7d73436b5c3d0dfe050befaae034a05afc86
Diffstat (limited to 'morphlib/fsutils.py')
-rw-r--r--morphlib/fsutils.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/morphlib/fsutils.py b/morphlib/fsutils.py
index a3b73bf6..fbc89688 100644
--- a/morphlib/fsutils.py
+++ b/morphlib/fsutils.py
@@ -15,18 +15,6 @@
import os
import re
-
-def create_image(runcmd, image_name, size): # pragma: no cover
- # FIXME a pure python implementation may be better
- runcmd(['dd', 'if=/dev/zero', 'of=' + image_name, 'bs=1',
- 'seek=%d' % size, 'count=0'])
-
-
-def partition_image(runcmd, image_name): # pragma: no cover
- # FIXME make this more flexible with partitioning options
- runcmd(['sfdisk', image_name], feed_stdin='1,,83,*\n')
-
-
def setup_device_mapping(runcmd, image_name): # pragma: no cover
findstart = re.compile(r"start=\s+(\d+),")
out = runcmd(['sfdisk', '-d', image_name])
@@ -42,10 +30,6 @@ def setup_device_mapping(runcmd, image_name): # pragma: no cover
return device.strip()
-def create_fs(runcmd, partition): # pragma: no cover
- runcmd(['mkfs.btrfs', '-L', 'baserock', partition])
-
-
def mount(runcmd, partition, mount_point, fstype=None): # pragma: no cover
if not os.path.exists(mount_point):
os.mkdir(mount_point)