3 # description: Create BTRFS subvolumes for LXC reference images.
16 echo $"Usage: $0 {start|stop|restart|reload|status|force}"
21 # Source function library
22 . /etc/init.d/functions
24 VERSION=`yum info lxc-reference | grep Version | awk '{ print $3; }'`
26 if [ -f /vservers/lxc-reference-${VERSION}.tgz ]; then
27 mkdir -p /vservers/.lvref
28 btrfs subvolume create /vservers/.lvref/lxc-f14-x86_64
29 btrfs subvolume create /vservers/.lvref/lxc-squeeze-x86_64
30 tar zxvf /vservers/lxc-reference-${VERSION}.tgz -C /vservers/
31 rm -rf /vservers/lxc-reference-${VERSION}.tgz