]> git.siccegge.de Git - forks/vmdebootstrap.git/commitdiff
Remove use of mbr
authorLars Wirzenius <liw@liw.fi>
Fri, 5 Apr 2013 21:50:21 +0000 (22:50 +0100)
committerLars Wirzenius <liw@liw.fi>
Fri, 5 Apr 2013 21:50:21 +0000 (22:50 +0100)
It turns out mbr is not needed, extlinux works on its own. Stupid me.

vmdebootstrap

index 9dd9ba54a6899324ed83704861a1a9eabffd5998..b675b22599e2f0ba92debb3c0c415d36dbc7e567 100755 (executable)
@@ -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]