checkfstab:
@grep ^cgroup /etc/fstab || (echo "You need to add cgroup entry to fstab 'cgroup /cgroup cgroup defaults 0 0'" && false)
-/usr/lib/lxc:
+/usr/share/lxc:
@[ -d $@ ] || sudo apt-get install lxc
/usr/share/bridge-utils:
delrights: beroot
lxc-setcap -d
-installtemplate: /usr/lib/lxc/templates/lxc-debian6 /usr/lib/lxc/templates/lxc-centos5
+installtemplate: /usr/share/lxc/templates/lxc-debian6 /usr/share/lxc/templates/lxc-centos5
-/usr/lib/lxc/templates/lxc-debian6: lxc-debian6 /usr/lib/lxc
- cat lxc-debian6 | sed 's!http://cdn.debian.net/debian/!$(DEBMIRROR)!' > /usr/lib/lxc/templates/lxc-debian6
- chmod 755 /usr/lib/lxc/templates/lxc-debian6
+/usr/share/lxc/templates/lxc-debian6: lxc-debian6 /usr/share/lxc
+ cat lxc-debian6 | sed 's!http://cdn.debian.net/debian/!$(DEBMIRROR)!' > /usr/share/lxc/templates/lxc-debian6
+ chmod 755 /usr/share/lxc/templates/lxc-debian6
-/usr/lib/lxc/templates/lxc-centos5: lxc-centos5 /usr/lib/lxc
- cp lxc-centos5 /usr/lib/lxc/templates/
+/usr/share/lxc/templates/lxc-centos5: lxc-centos5 /usr/share/lxc
+ cp lxc-centos5 /usr/share/lxc/templates/
createdeb:
sudo /usr/bin/lxc-create -n dhdebian6.local -f config.debian6 -t debian6