summaryrefslogtreecommitdiff
path: root/morphlib/fsutils.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-08-06 10:52:21 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2012-08-06 10:52:21 +0000
commitb3838be603ed73e89bec046c50a6c416c6a6fbcb (patch)
treed3b4fae0e7f999dadaeafe7d3a486c7949e52e0b /morphlib/fsutils.py
parenta086d6644ac142ba3a4351d16b4ba369d379d4a9 (diff)
downloadmorph-b3838be603ed73e89bec046c50a6c416c6a6fbcb.tar.gz
Move install_syslinux_mbr into syslinux plugin
This is not used elsewhere, and probably never will.
Diffstat (limited to 'morphlib/fsutils.py')
-rw-r--r--morphlib/fsutils.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/morphlib/fsutils.py b/morphlib/fsutils.py
index 45fb9e2f..9786e387 100644
--- a/morphlib/fsutils.py
+++ b/morphlib/fsutils.py
@@ -28,15 +28,6 @@ def partition_image(runcmd, image_name):
runcmd(['sfdisk', image_name], feed_stdin='1,,83,*\n')
-def install_syslinux_mbr(runcmd, image_name):
- for path in ['/usr/lib/extlinux/mbr.bin',
- '/usr/share/syslinux/mbr.bin']:
- if os.path.exists(path):
- runcmd(['dd', 'if=' + path, 'of=' + image_name,
- 'conv=notrunc'])
- break
-
-
def setup_device_mapping(runcmd, image_name):
findstart = re.compile(r"start=\s+(\d+),")
out = runcmd(['sfdisk', '-d', image_name])