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:
-------
[EMAIL PROTECTED]:/root# mkdir -p /mnt/hda1/tmp/grml
[EMAIL PROTECTED]:/root# unionctl /UNIONFS --add /mnt/hda1/tmp/grml
[EMAIL PROTECTED]:/root# unionctl /UNIONFS --mode /ramdisk ro
[EMAIL PROTECTED]:/root# aptitude install mtx
# [much output omitted]
[EMAIL PROTECTED]:/root# unionctl /UNIONFS --mode /ramdisk rw
# [wait a few seconds for things to settle]
[EMAIL PROTECTED]:/root# unionctl /UNIONFS --remove /mnt/hda1/tmp/grml
[EMAIL PROTECTED]:/root# rm -rf /mnt/hda1/tmp/grml/var/
[EMAIL PROTECTED]:/root# rm -rf /mnt/hda1/tmp/grml/root/
# [more cleanup, if necessary]
[EMAIL PROTECTED]:/root# mksquashfs /mnt/hda1/tmp/grml 
/mnt/hda1/tmp/mtx.squashfs
-------

This creates a squashed filesystem image that can be added to /UNIONFS:
-------
[EMAIL PROTECTED]:/root# mkdir -p /mnt/hda1/tmp/mnt/mtx
[EMAIL PROTECTED]:/root# mount -o loop -t squashfs /mnt/hda1/tmp/mtx.squashfs
/mnt/hda1/tmp/mnt/mtx
[EMAIL PROTECTED]:/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
_______________________________________________
Grml mailing list - [email protected]
http://lists.mur.at/mailman/listinfo/grml
join #grml on irc.freenode.org
grml-devel-blog: http://grml.supersized.org/

Reply via email to