Apps :: Adding files permanently to be loaded in ram



I need a binary file to be present in RAM at every boot, in the read only fileformat under /bin, and a symlink in /lib as well...

Does this require a remaster of DSL? It seems a little difficult for a newbie - are there a better way?

btw, great product this distro :)

/bin ? maybe you meant /usr/bin, etc?

Remastering the image will only be in ram if you boot with toram, or else your best bet would just to make a .dsl extension.

Of course you could just copy your binary and libs manually (you'll probably need to run mkwriteable manually as well though)

If you don't want to run mkwriteable, which adds a slew of syminks to /ramdisk from /usr, /bin, /lib, and /sbin, the bin file could be added to /opt/bin. I don't think there is a writable lib directory in DSL without running mkwriteable, though, so for this file you'll either need to run mkwriteable (automatically done when installing a *.dsl file), or modify your LD_LIBRARY_PATH variable to include the new lib directory.
Alright, let me try to explain better what I try to do:

The application I want to run consist of one binary file, and one config file. It also requires libcrypto.so.0.9.8 in /lib. This library does exist in DSL, but as an earlier version - libcrypto.so.0.9.7. Though, this version works just fine for my needs, I can simply

Code Sample
ln /usr/lib/libcrypto.so.0.9.7 /lib/libcrypto.so.0.9.8


As for the file ment to be in /bin directory, I have found a way to specify a different location for it, so the only thing for me to do is "faking" the existence of /lib/libcrypto.so.0.9.8

Is this a difficult task?

Additional info, slightly offtoptic, but for what it's worth:

I am booting from a CF card, using an old Neoware thinclient (Eon 2000) as hardware. Nice power from a 300MHz Geode CPU ;) Seriously, it runs very smooth at maximum total power consumption of 15W! 128MB SD-RAM. No fans :)

I may have caused confusion when mixing ramdisk with RO directories, sorry. I see now that only the directories /home, /opt and /var are on ramdisk, and of course that's what makes them RW. Which is making my thread title completely wrong. But it's impossible for me to change it...

Next Page...
original here.