From 465e9b7cfea1879d459562f1e64da5a9ae5df7d8 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 9 Oct 2007 15:13:05 -0400 Subject: [PATCH] fix bug in the lvcreate-all script. svn path=/trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/; revision=155 --- files/usr/sbin/sipb-xen-lvm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/usr/sbin/sipb-xen-lvm b/files/usr/sbin/sipb-xen-lvm index 72d3bdb..304e08d 100755 --- a/files/usr/sbin/sipb-xen-lvm +++ b/files/usr/sbin/sipb-xen-lvm @@ -58,7 +58,7 @@ elif subcommand == "lvcreate-all": check(re.match('^[A-Za-z0-9]+$', d.guest_device_name)) machine = Machine.get(d.machine_id) check(re.match('^[A-Za-z0-9][A-Za-z0-9._-]*$', machine.name)) - lvname = machine.name + "_" + d.guest_device_name + lvname = prefix + machine.name + "_" + d.guest_device_name if not os.path.exists("/dev/%s/%s" % (vg, lvname)): # LV doesn't exist print >>sys.stderr, "Creating LV %s..." % (lvname,) -- 1.7.9.5