Re: [cooking] Some figures for comparing various live boot modes |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/slitaz Archives
]
On 02/01/2011 14:37, Philippe Lelédy wrote:
On 02/01/2011 12:18, Philippe Lelédy wrote:
modularity will be built in ( it is yet here, to a large extend:
HOW-TO:
-1- Standardize on loram-smallcdrom
-2- all modules should be put in a *single* directory, on whatever
partition you choose.
-3- for building a new module:
a) decide which previous modules it depends on, and which pkg will make
up the new module (this is the only *hard* part)
b) using aufs, stack all these modules r/o + one top layer r/w (easy,
see tazlito as example)
c) tazpkg install-list the-list-of-pkg-my-new-module-is-made-of --root
my-aufs-stack
d) mksquashfs my-aufs-branche-rw modules/dir/rootfs-my-new-module
-4- add this in bootloader
loram=UUID=<uuid-of-module-partition>,modules/dir/
Yes, I tried this HowTo and it works exactly as I said:
Here is the result
cat /proc/cmdline
initrd=../initfs-lz-330LCR
loram=LABEL=p1-liveOSs,liveOSs/slitaz-cooking/phl/sqfs-0/ lang=fr_FR
kmap=fr-latin1 rw vga=normal autologin home=LABEL="p3-home"
BOOT_IMAGE=../bzImage
ll -h /media/p1-liveOSs/liveOSs/slitaz-cooking/phl/sqfs-0/
-rw-r--r-- 1 root root 972.0K Jan 9 19:20 rootfs.40pm.gz
-rw-r--r-- 1 root root 141.3M Dec 31 00:00 rootfs.80base.gz
sudo losetup
/dev/loop0: 0 /mnt/rootfs.40pm.gz
/dev/loop1: 0 /mnt/rootfs.80base.gz
mount
/dev/loop0 on /mnt/.fs.40pm.gz type squashfs (ro,relatime)
/dev/loop1 on /mnt/.fs.80base.gz type squashfs (ro,relatime)
none on / type aufs (rw,relatime,si=3cf302cf)
cat /sys/fs/aufs/si_3cf302cf/br*
/mnt/.rw=rw
/mnt/.fs.40pm.gz=rr
/mnt/.fs.80base.gz=rr
Of course, I will end up with tazlito gen-distro, but using modules like
this helps me find out which packages I actually need for my daily use.
Once this list is stable enough, I rebuild the distro.
BTW, this rootfs.40pm.gz contains pm-utils and its prerequisites which
gives me the feature I missed the much: pm-suspend ! b/c with out
power-management an OS is useless for me.
Ph.L.
---
SliTaz GNU/Linux Mailing list - http://www.slitaz.org/