[Bug 410886] Re: VMBuilder doesn't work with grub2
Arnaud
arnaud.oss at gmail.com
Sat Oct 17 19:15:29 BST 2009
Using a fresh install of karmic (grub2 only on host)
I had to manually apply the patch made by Colin Watson (comment #4) and
it almost worked...
First question, why is this patch not yet included in an updated package
of vmbuilder ?
Second, I encountered the same problem as Iain Allan (comment #9), I
think I fixed it, patch below...
I can finally build karmic vm on karmic host, ... and start them!
patch against python-vm-builder 0.11.1-0ubuntu1
--- /usr/share/pyshared/VMBuilder/plugins/ubuntu/dapper.py
+++ /usr/share/pyshared/VMBuilder/plugins/ubuntu/dapper.py
@@ -306,7 +306,7 @@
def install_grub(self):
self.run_in_target('apt-get', '--force-yes', '-y', 'install', 'grub')
- run_cmd('cp', '-a', '%s%s/%s/' % (self.destdir, self.grubroot, self.vm.arch == 'amd64' and 'x86_64-pc' or 'i386-pc'), '%s/boot/grub' % self.destdir)
+ run_cmd('cp', '-a', '%s%s/%s/.' % (self.destdir, self.grubroot, self.vm.arch == 'amd64' and 'x86_64-pc' or 'i386-pc'), '%s/boot/grub' % self.destdir)
def create_devices(self):
import VMBuilder.plugins.xen
--
VMBuilder doesn't work with grub2
https://bugs.launchpad.net/bugs/410886
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.
More information about the Ubuntu-server-bugs
mailing list