ubuntu-vm-builder fails to build Hardy image on Lucid.

Bug #588142 reported by Sponge-Bob
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntu-vm-builder (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: ubuntu-vm-builder

This is the last of the output when using ubuntu-vm-builder
The following flags were used:
ubuntu-vm-builder kvm hardy
--rootsize
--domain
--dest /kvm-images/
--arch amd64
--hostname
--mem 512
--user
--pass
--mirror http://za.archive.ubuntu.com/ubuntu
--components 'main,universe,restricted'
--addpkg vim
--addpkg openssh-server
--libvirt qemu:///system
--debug

2010-05-31 16:58:35,056 DEBUG : ['chroot', '/tmp/tmpez3eVQ', '/usr/sbin/update-grub', '-y']
2010-05-31 16:58:35,219 INFO : Searching for GRUB installation directory ... found: /boot/grub
2010-05-31 16:58:35,367 INFO : Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
2010-05-31 16:58:35,368 INFO : Searching for GRUB installation directory ... found: /boot/grub
2010-05-31 16:58:35,375 INFO : Testing for an existing GRUB menu.lst file ...
2010-05-31 16:58:35,375 INFO :
2010-05-31 16:58:35,376 INFO : Could not find /boot/grub/menu.lst file.
2010-05-31 16:58:35,376 INFO : Generating /boot/grub/menu.lst
2010-05-31 16:58:35,459 INFO : Searching for splash image ... none found, skipping ...
2010-05-31 16:58:35,612 INFO : grep: /boot/config*: No such file or directory
2010-05-31 16:58:35,688 INFO : Updating /boot/grub/menu.lst ... done
2010-05-31 16:58:35,688 INFO :
Traceback (most recent call last):
  File "/usr/bin/ubuntu-vm-builder", line 24, in <module>
    uvb.main()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/contrib/cli.py", line 116, in main
    hypervisor.install_os()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/hypervisor.py", line 68, in install_os
    self.call_hooks('install_bootloader', self.chroot_dir, self.disks)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/distro.py", line 66, in call_hooks
    call_hooks(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/util.py", line 158, in call_hooks
    getattr(plugin, func, log_no_such_method)(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/distro.py", line 222, in install_bootloader
    self.suite.install_menu_lst(disks)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/dapper.py", line 211, in install_menu_lst
    self.mangle_grub_menu_lst(disks)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/edgy.py", line 33, in mangle_grub_menu_lst
    run_cmd('sed', '-ie', 's/^# kopt=root=\([^ ]*\)\(.*\)/# kopt=root=UUID=%s\\2/g' % bootdev.fs.uuid, '%s/boot/grub/menu.lst' % self.destdir)
AttributeError: 'Hardy' object has no attribute 'destdir'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.