From: Lars Wirzenius Date: Fri, 5 Apr 2013 21:50:21 +0000 (+0100) Subject: Remove use of mbr X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=ecf777d3fbf8ba5c5decb4495126d19a2fc36a72;p=forks%2Fvmdebootstrap.git Remove use of mbr It turns out mbr is not needed, extlinux works on its own. Stupid me. --- diff --git a/vmdebootstrap b/vmdebootstrap index 9dd9ba5..b675b22 100755 --- a/vmdebootstrap +++ b/vmdebootstrap @@ -1,5 +1,5 @@ #!/usr/bin/python -# Copyright 2011, 2012 Lars Wirzenius +# Copyright 2011, 2012, 2013 Lars Wirzenius # Copyright 2012 Codethink Limited # # This program is free software: you can redistribute it and/or modify @@ -92,7 +92,6 @@ class VmDebootstrap(cliapp.Application): if self.settings['image']: self.create_empty_image() self.partition_image() - self.install_mbr() rootdev = self.setup_kpartx() self.mkfs(rootdev) rootdir = self.mount(rootdev) @@ -165,10 +164,6 @@ class VmDebootstrap(cliapp.Application): self.runcmd(['parted', '-s', self.settings['image'], 'set', '1', 'boot', 'on']) - def install_mbr(self): - self.message('Installing MBR') - self.runcmd(['install-mbr', self.settings['image']]) - def setup_kpartx(self): out = self.runcmd(['kpartx', '-av', self.settings['image']]) devices = [line.split()[2]