From ecf777d3fbf8ba5c5decb4495126d19a2fc36a72 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 5 Apr 2013 22:50:21 +0100 Subject: [PATCH] Remove use of mbr It turns out mbr is not needed, extlinux works on its own. Stupid me. --- vmdebootstrap | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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] -- 2.39.5