cbagger01
Group: Members
Posts: 4264
Joined: Oct. 2003 |
|
Posted: April 07 2005,16:51 |
|
Here's the dilemma:
I like to have a mydsl.iso that contains some uci files like opera.uci
These extensions are great because they take up very little memory when used on a low RAM system but they can't be automatically used on a high RAM system when booted into "toram" mode and the CD-R disk is then removed from the tray.
However, this can be solved by using opera.tar.gz because you can automatically load a *.tar.gz extension at boot time for those situations where you are using a newer computer and want to use the "toram" feature in DSL.
But it seems silly for me to keep two extensions of the same program for my use, one for low RAM and another for toram.
So I considered two possible solutions for this problem and allow the user to only need to keep one extension file for their use:
1) Modify the bootup process so that when "uci2ram" or similar parameter is specified, the script will copy the *.uci extensions over to either /tmp/uci/ or to /opt/uci (both locations are part of the RAMdisk) first and then do a uci mount on these copies.
2) An alternative approach would be if "uci2ram" is chosen, to figure out the uci total size and then create an additional ramdisk to hold the compressed isos and then mount them directly like the compressed KNOPPIX image in the "toram" copyover process. This approach seems overly complicated to me but it would work.
I'm sure that there are other ways to also accomplish this but the important concept that I am trying to explain is:
It should be possible to allow the user to choose an autoload command for the uci files to be transferred at boot time from the livecd over to RAM and then mount so the best of both worlds ( toram + uci ) can be used at the same time and also still be able to remove the livecd from the tray. Of course when using this command, the user must be smart enough to prevent the overloading of RAM on his computer but he/she already needs to worry about this when choosing his/her *.dsl and *.tar.gz collection so it is already a familiar burden.
In the meantime, an interim solution is to boot in "toram" mode and then manually mount the cd disk, copy over the /cdrom/*.uci files to /tmp and then myDSL load them from there and then unmount the cd disk.
|