From: Jamie Lenehan <lenehan@twibble.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Making /var/lib persistent
Date: Thu, 19 Apr 2007 11:49:50 +1000 [thread overview]
Message-ID: <20070419014949.GA6540@twibble.org> (raw)
In-Reply-To: <46262A0F.1050805@dominion.kabel.utwente.nl>
On Wed, Apr 18, 2007 at 07:24:15AM -0700, Koen Kooi wrote:
[...]
> Sound like a good idea, do you have a patch for this?
Try this out:
http://twibble.org/dist/oe/var-volatiles-1.patch
I've tested it locally both with and without tmpfs mounted on
/var/volatile and all seems to work as expected.
I modified the base-files recipe to create the /var/volatile
directory and the various subdirectories in it and to create symlinks
from /var for those directories. This means that even if your not
using tmpfs these will still point into the volatile directory. It
was rather difficult to make it wotk without doing this.
So on the target I end up with this:
root@titan:/$ find /var -exec ls -ld {} \;
drwxr-xr-x 7 root root 288 Apr 19 2007 /var
drwxr-xr-x 4 root root 96 Apr 19 2007 /var/lib
drwxr-xr-x 2 root root 168 Apr 19 2007 /var/lib/ipkg
-rw-r--r-- 1 root root 196192 Apr 19 2007 /var/lib/ipkg/nynaeve-titan
-rw-r--r-- 1 root root 14408 Apr 19 2007 /var/lib/ipkg/nynaeve-all
-rw-r--r-- 1 root root 2670761 Apr 19 2007 /var/lib/ipkg/nynaeve-sh4
drwxr-xr-x 2 root root 48 Apr 19 2007 /var/lib/misc
lrwxrwxrwx 1 root root 12 Apr 19 2007 /var/log -> volatile/log
lrwxrwxrwx 1 root root 12 Apr 19 2007 /var/run -> volatile/run
lrwxrwxrwx 1 root root 17 Apr 19 2007 /var/tmp -> volatile/tmp
lrwxrwxrwx 1 root root 13 Apr 19 2007 /var/lock -> volatile/lock
lrwxrwxrwx 1 root root 14 Apr 19 2007 /var/cache -> volatile/cache
drwxr-sr-x 2 root root 48 Apr 19 2007 /var/local
drwxr-xr-x 2 root root 48 Apr 19 2007 /var/spool
drwxr-xr-x 2 root root 48 Apr 19 2007 /var/backups
drwxr-xr-x 7 root root 140 Jan 1 00:32 /var/volatile
drwxrwxrwt 2 root root 40 Jan 1 00:32 /var/volatile/tmp
drwxr-xr-x 2 root root 60 Jan 1 00:32 /var/volatile/run
-rw-rw-r-- 1 root root 0 Jan 1 00:33 /var/volatile/run/utmp
drwxr-xr-x 2 root root 60 Jan 1 00:32 /var/volatile/log
-rw-rw-r-- 1 root root 0 Jan 1 00:33 /var/volatile/log/wtmp
drwxrwxrwt 3 root root 60 Jan 1 00:32 /var/volatile/lock
drwxr-xr-x 2 root root 40 Jan 1 00:32 /var/volatile/lock/subsys
drwxr-xr-x 2 root root 40 Jan 1 00:32 /var/volatile/cache
root@titan:/$ mount | grep var
tmpfs on /var/volatile type tmpfs (rw)
root@titan:/$
--
Jamie Lenehan <lenehan@twibble.org>
next prev parent reply other threads:[~2007-04-19 1:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-16 22:02 Making /var/lib persistent Koen Kooi
2007-04-16 22:13 ` Patrick Steiner
2007-04-16 22:40 ` Erik Hovland
2007-04-16 22:43 ` cyril Romain
2007-04-18 9:02 ` Jamie Lenehan
2007-04-18 14:24 ` Koen Kooi
2007-04-19 1:49 ` Jamie Lenehan [this message]
2007-04-19 17:37 ` Justin Patrin
2007-04-23 11:53 ` Paul Sokolovsky
2007-05-10 15:00 ` Paul Sokolovsky
2007-05-10 19:23 ` Koen Kooi
2007-05-10 23:06 ` Richard Purdie
2007-05-14 12:06 ` Koen Kooi
2007-05-14 12:21 ` Koen Kooi
2007-04-19 23:32 ` Matthias Hentges
-- strict thread matches above, loose matches on Subject: below --
2007-05-14 17:15 [cc]smart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070419014949.GA6540@twibble.org \
--to=lenehan@twibble.org \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.