[Pkg-escience-soc2009] [SCM] Tool for creating VM images. branch, master, updated. e68fce5b37c7281c38ff816249d02de18091970a

Steffen Moeller steffen_moeller at gmx.de
Mon Jul 13 00:32:43 UTC 2009


The following commit has been merged in the master branch:
commit e68fce5b37c7281c38ff816249d02de18091970a
Author: Steffen Moeller <steffen_moeller at gmx.de>
Date:   Mon Jul 13 02:31:54 2009 +0200

    \(\) to () to repair root specification
    
    Tested.

diff --git a/VMBuilder/plugins/debian/lenny.py b/VMBuilder/plugins/debian/lenny.py
index dcef1c8..bffd7f7 100644
--- a/VMBuilder/plugins/debian/lenny.py
+++ b/VMBuilder/plugins/debian/lenny.py
@@ -112,5 +112,5 @@ class Lenny(Etch):
     def fix_grub_menu_lst_root(self):
         # Extremely dirty hack to fix the root parameters in menu.lst to (hd0,0)
         bootdev = disk.bootpart(self.vm.disks)
-        run_cmd('sed', '-ie', 's/root[ \t]*\([^)]*\)/(hd0,0)/g', '%s/boot/grub/menu.lst' % self.destdir)
+        run_cmd('sed', '-ie', 's/([^)]*)/(hd0,0)/', '%s/boot/grub/menu.lst' % self.destdir)
         

-- 
Tool for creating VM images.



More information about the Pkg-escience-soc2009 mailing list