wok-next diff slitaz-loram/receipt @ rev 369

Slitaz-loram: version 1.2, access r/w to /usr
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 08 01:10:18 2008 +0000 (2008-03-08)
parents 3a5e92c048e0
children fc9f573e8ac8
line diff
     1.1 --- a/slitaz-loram/receipt	Sat Mar 01 12:55:33 2008 +0000
     1.2 +++ b/slitaz-loram/receipt	Sat Mar 08 01:10:18 2008 +0000
     1.3 @@ -1,11 +1,11 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="slitaz-loram"
     1.7 -VERSION="1.1"
     1.8 +VERSION="1.2"
     1.9  CATEGORY="misc"
    1.10  SHORT_DESC="Rules to build low ram rootfs.gz."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 -DEPENDS="squashfs"
    1.13 +DEPENDS="cromfs"
    1.14  
    1.15  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.16  genpkg_rules()
    1.17 @@ -19,12 +19,17 @@
    1.18      cat <<EOF
    1.19  --- /etc/init.d/rcS
    1.20  +++ /etc/init.d/rcS
    1.21 -@@ -58,2 +58,9 @@
    1.22 +@@ -58,2 +58,14 @@
    1.23   
    1.24  +# Mount compressed /usr
    1.25 -+if [ -f /.usr.sqfs ]; then
    1.26 ++if [ -f /.usr.cromfs ]; then
    1.27  +	echo -n "Mounting compressed /usr read-only... "
    1.28 -+	/bin/mount -o loop,ro -t squashfs /.usr.sqfs /usr
    1.29 ++	if [ -d /.usr.rw ]; then
    1.30 ++		/bin/cromfs-driver /.usr.cromfs /.usr.ro
    1.31 ++		/bin/funionfs -o dirs=/.usr.ro=RO:/.usr.rw -o allow_other NONE /usr
    1.32 ++	else
    1.33 ++		/bin/cromfs /.usr.cromfs /usr
    1.34 ++	fi
    1.35  +	status
    1.36  +fi
    1.37  +