
Maybe it is already there and I just managed to miss it this far; if so, I apologize. Here is my thought, anyway: Wouldn't it be neat to have modules containing data and/or executables that can be added to or removed from the system at runtime?
I tried the following from the 0.8 live CD with a HD mounted on /mnt/hda1: ------- root@grml:/root# mkdir -p /mnt/hda1/tmp/grml root@grml:/root# unionctl /UNIONFS --add /mnt/hda1/tmp/grml root@grml:/root# unionctl /UNIONFS --mode /ramdisk ro root@grml:/root# aptitude install mtx # [much output omitted] root@grml:/root# unionctl /UNIONFS --mode /ramdisk rw # [wait a few seconds for things to settle] root@grml:/root# unionctl /UNIONFS --remove /mnt/hda1/tmp/grml root@grml:/root# rm -rf /mnt/hda1/tmp/grml/var/ root@grml:/root# rm -rf /mnt/hda1/tmp/grml/root/ # [more cleanup, if necessary] root@grml:/root# mksquashfs /mnt/hda1/tmp/grml /mnt/hda1/tmp/mtx.squashfs -------
This creates a squashed filesystem image that can be added to /UNIONFS: ------- root@grml:/root# mkdir -p /mnt/hda1/tmp/mnt/mtx root@grml:/root# mount -o loop -t squashfs /mnt/hda1/tmp/mtx.squashfs /mnt/hda1/tmp/mnt/mtx root@grml:/root# unionctl /UNIONFS --add --after /ramdisk --mode ro /mnt/hda1/tmp/mnt/mtx -------
After that, mtx is available for use, just as if it was part of the real live CD.
Would something like that be useful for grml? Useful enough to create an official set of scripts to create, add and remove such modules?
Just wondering, --j