I've taken a similar approach with the package db and the emerge cache,
which would usually reside in /var/db/pkg and /var/cache/edb.
good idea for the log, and lock dirs.
I guess /var/run, etc, etc can all go in tmpfs
C
Joshua ChaitinPollak wrote:
Chris,
I think you'll still want to use the desktop profile, but configure your
/tmp and /var/log to be mounted on a shared file system. What I've done
in my embedded system is modify the inittab file to mount tmp on a shmfs
file system, and the create directories called /tmp/var/log and
/tmp/var/lock. The root file system (on disk), has symbolic links in
place at /var/log and /var/lock that point to /tmp/var/log and
/tmp/var/lock, respectively. This works fine, because by the time any
process is ready to write to /var/log, the inittab has already mounted
the shared file system and made the target directories of the symbolic
links.
I think this would work for you, but its a bit of manual configuration
you'll have to work through.
I don't know how you'd handle things like Firefox's cache, I don't know
any way to reduce its writes or redirect them out of your profile.
On Apr 17, 2008, at 9:47 AM, Christopher Friedt wrote:
Does anyone know if there is a portage profile for reduced disk
writes? I just got an EEE pc and I'm experimenting on a USB stick
before I write to the SDD. I'm sort of guessing that such a profile
would basically just slightly alter the default configuration files of
certain apps to either turn off logging or to mount temporary
directories as tmpfs.
Does such a profile sound closer to embedded, or would it be a desktop
profile without the logger, etc, etc.
It seems the line between embedded and default is growing thinner
every day!
I guess I'm looking for something that's more or less a Desktop
profile, but something that would be more suitable for flash-based
devices, like the OpenMoko/Neo, EEE Pc, or a Maemo.
Nedd, I've been using qmerge with my arm packages by the way, and it's
fantastic. I'm really looking forward to using it more. At some point
I'm hoping to use, augment or write a graphical app for installing
packages locally and also remotely via ssh or some web interface.
Cheers,
Chris
--
[email protected] mailing list
--
[email protected] mailing list