On Tue, May 5, 2009 at 3:05 AM, Tom Brown <tom(a)ng23.net> wrote:
At the moment i use the keep_ssh_host_keys snippet to make sure the
host
key does not change accross rebuilds to avoid fingerprint trouble, and
this works fine.
I have a situation where i have to preserve a certain directory /var/log
and this is NOT always on a seperate partition so i wonder would it be
possible to use a similar trick to preserve this directory? I am not
certain as this directory can be quite large.
any ideas ?
Using the same method as keep_ssh_host_keys is not suggested as it
puts the contents in memory. Since the contents of /var isn't going to
really mess with the system if there are some stray directories or
files you should try the --noformat option. In the case that /var is
on the same volume as /, you really should format it. Just make sure
to copy the data off first. I've heard of people installing overtop of
an existing install without formatting, but that is black magic and
should absolutely be avoided. It could lead to problems that are very
difficult or impossible to reproduce (and may "void" your support
agreements for those systems).
Take a look at:
http://fedoraproject.org/wiki/Anaconda/Kickstart
Something like this might work for you (not tested):
part /var --label=var --recommended --noformat --ondisk
If doing the above, make sure to not do "clearpart --all" and instead
specify the partitions you want to clear or manually do it with some
parted magic. Maybe this will give you some ideas?
--
Jeff Schroeder
Don't drink and derive, alcohol and analysis don't mix.
http://www.digitalprognosis.com