wok-6.x view slitaz-loram/receipt @ rev 232

Slitaz-loram: do not trust mksquashfs status
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 16 23:00:26 2008 +0100 (2008-02-16)
parents f96f999ca433
children f7f92ff46cc8
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-loram"
4 VERSION="1.0"
5 CATEGORY="misc"
6 SHORT_DESC="Rules to build low ram rootfs.gz."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="squashfs"
10 # Rules to gen a SliTaz package suitable for Tazpkg.
11 genpkg_rules()
12 {
13 mkdir -p $fs/etc/tazlito
14 cat > $fs/etc/tazlito/loram.rootfs << EOF
15 mksquashfs usr .usr.sqfs
16 rm -rf usr
17 mkdir usr
18 COMPRESSION="none"
19 EOF
20 }
22 get_patch()
23 {
24 cat <<EOF
25 --- /etc/init.d/rcS
26 +++ /etc/init.d/rcS
27 @@ -79,2 +79,7 @@
29 +# Mount compressed /usr
30 +if [ -f /.usr.sqfs ]; then
31 + /bin/mount -o loop,ro -t squashfs /.usr.sqfs /usr
32 +fi
33 +
34 # Handle kernel cmdline parameter config=<device>,<path> to source a
35 EOF
36 }
38 # Pre and post install commands for Tazpkg.
39 post_install()
40 {
41 get_patch | patch -p0
42 }
44 # Pre remove commands for Tazpkg.
45 pre_remove()
46 {
47 get_patch | patch -R -p0
48 }