[Fusionforge-commits] r12440 - trunk/tests/lxc

Christian Bayle cbayle at fusionforge.org
Mon Feb 28 21:35:06 CET 2011


Author: cbayle
Date: 2011-02-28 21:35:05 +0100 (Mon, 28 Feb 2011)
New Revision: 12440

Modified:
   trunk/tests/lxc/Makefile
Log:
Review cgroup dependancy logic


Modified: trunk/tests/lxc/Makefile
===================================================================
--- trunk/tests/lxc/Makefile	2011-02-28 20:20:37 UTC (rev 12439)
+++ trunk/tests/lxc/Makefile	2011-02-28 20:35:05 UTC (rev 12440)
@@ -8,13 +8,15 @@
 default: vmdebian6-config netstaticdeb installkey
 	@echo "read the Makefile to see available targets"
 
+/cgroup/tasks: beroot mountcgroup
+
 /cgroup: beroot
 	mkdir /cgroup
 
 checkfstab:
 	grep ^cgroup /etc/fstab || (echo "You need to add cgroup entry to fstab \"cgroup        /cgroup        cgroup        defaults    0    0\"" && false)
 
-mount: beroot
+mountcgroup: beroot /cgroup checkfstab
 	mount /cgroup
 
 /var/lib/lxc/vmdebian6: beroot /usr/bin/lxc-info bridging
@@ -39,7 +41,7 @@
 	#sh -c "echo \"lxc.network.ipv4 = $(IPDEBBASE).$(VEIDDEB)/24\">> $(VMROOT)/config" ; \
 	#
 
-vmdebian6-start: beroot checkfstab
+vmdebian6-start: /cgroup/tasks
 	lxc-start -n vmdebian6 -d
 	sleep 5
 	lxc-info -n vmdebian6




More information about the Fusionforge-commits mailing list