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