wok-stable diff lxc/receipt @ rev 12427

lxc: use ash shell for lxc-template;fix arch command, use (uname -m)
author Stanislas Leduc <shann@slitaz.org>
date Sat Dec 21 12:16:47 2013 +0100 (2013-12-21)
parents 9f83ce181bc0
children 27d494224398
line diff
     1.1 --- a/lxc/receipt	Sat Dec 21 11:19:27 2013 +0100
     1.2 +++ b/lxc/receipt	Sat Dec 21 12:16:47 2013 +0100
     1.3 @@ -33,12 +33,13 @@
     1.4  		$fs/usr/bin/lxc-version $fs/usr/bin/lxc-netstat \
     1.5  		$fs/usr/bin/lxc-destroy $fs/usr/bin/lxc-create \
     1.6  		$fs/usr/bin/lxc-setcaps $fs/usr/bin/lxc-setuid \
     1.7 -		$fs/usr/bin/lxc-ls
     1.8 +		$fs/usr/bin/lxc-ls $fs/usr/lib/lxc/templates/lxc*
     1.9  	sed -i -e 's/^is_set(/zgrep() { zcat | grep "$@"; }\n\n&/' \
    1.10  		-e 's/\(.*\$GREP .*\)\(\$CONFIG.*\)/\1< \2/' \
    1.11  		-e 's/ < 3/ -lt 3/;s/ > 3/ -gt 3/' -e 's|/bin/bash|/bin/ash|' \
    1.12  		$fs/usr/bin/lxc-checkconfig
    1.13  	sed -i "s/--preserve-root//" $fs/usr/bin/lxc-destroy $fs/usr/lib/lxc/templates/lxc-*
    1.14 +	sed -i "s/(arch)/(uname -m)/" $fs/usr/lib/lxc/templates/lxc-*
    1.15  	chmod +x $fs/usr/bin/lxc-*
    1.16  }
    1.17