~ubuntu-branches/ubuntu/quantal/vm-builder/quantal-proposed

« back to all changes in this revision

Viewing changes to VMBuilder/plugins/ubuntu/edgy.py

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2010-07-09 22:58:32 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20100709225832-3l6cw3i8jpsi6x95
Tags: 0.12.4-0ubuntu1
New upstream, bugfix release. (LP: #539460, #536942, #535397,
#550689, #410521, #550691, others)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
    def mangle_grub_menu_lst(self, disks):
32
32
        bootdev = disk.bootpart(disks)
33
 
        run_cmd('sed', '-ie', 's/^# kopt=root=\([^ ]*\)\(.*\)/# kopt=root=UUID=%s\\2/g' % bootdev.fs.uuid, '%s/boot/grub/menu.lst' % self.destdir)
34
 
        run_cmd('sed', '-ie', 's/^# groot.*/# groot %s/g' % bootdev.get_grub_id(), '%s/boot/grub/menu.lst' % self.destdir)
35
 
        run_cmd('sed', '-ie', '/^# kopt_2_6/ d', '%s/boot/grub/menu.lst' % self.destdir)
 
33
        run_cmd('sed', '-ie', 's/^# kopt=root=\([^ ]*\)\(.*\)/# kopt=root=UUID=%s\\2/g' % bootdev.fs.uuid,
 
34
                '%s/boot/grub/menu.lst' % self.context.chroot_dir)
 
35
        run_cmd('sed', '-ie', 's/^# groot.*/# groot %s/g' % bootdev.get_grub_id(),
 
36
                '%s/boot/grub/menu.lst' % self.context.chroot_dir)
 
37
        run_cmd('sed', '-ie', '/^# kopt_2_6/ d', '%s/boot/grub/menu.lst' %
 
38
                self.context.chroot_dir)
36
39
 
37
40
    def fstab(self):
38
41
        retval = '''# /etc/fstab: static file system information.