wok rev 12966

cookutils: tank should install aufs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 01 09:44:20 2012 +0200 (2012-06-01)
parents 949e9a8f1707
children 16c18225789a
files cookutils/receipt
line diff
     1.1 --- a/cookutils/receipt	Fri Jun 01 08:32:45 2012 +0200
     1.2 +++ b/cookutils/receipt	Fri Jun 01 09:44:20 2012 +0200
     1.3 @@ -27,3 +27,15 @@
     1.4  	# Daemon goes in cookutils-deamon
     1.5  	rm -rf $fs/etc/init.d
     1.6  }
     1.7 +
     1.8 +# Pre and post install commands for Tazpkg.
     1.9 +post_install()
    1.10 +{
    1.11 +	case "$(cat $1/etc/hostname)" in
    1.12 +	tank*)
    1.13 +		if ! chroot $1/ tazpkg list | grep -q aufs ; then
    1.14 +			tazpkg get-install aufs --root=$1/
    1.15 +			sed -i 's/LOAD_MODULES="/&aufs /' $1/etc/rcS.conf
    1.16 +		fi ;;
    1.17 +	esac
    1.18 +}