Comment 12 for bug 410886

Revision history for this message
Arnaud (arnaud-oss) wrote :

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