diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-08-06 10:52:21 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-08-06 10:52:21 +0000 |
commit | b3838be603ed73e89bec046c50a6c416c6a6fbcb (patch) | |
tree | d3b4fae0e7f999dadaeafe7d3a486c7949e52e0b /morphlib/fsutils.py | |
parent | a086d6644ac142ba3a4351d16b4ba369d379d4a9 (diff) | |
download | morph-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.py | 9 |
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]) |