On Wed, 24.10.12 15:45, Cliff Brake (cliff.br...@gmail.com) wrote:

> Hello,
> 
> We have an embedded system where we boot from an initramfs, but partway
> through the boot, we would like to move the journal to NAND flash if its
> available.
> 
> I tried modifying the systemd-journald.service to Requires my
> nand-mount.mount unit, and that seems to work on bootup, but there is some
> type of deadlock on shutdown.
> 
> Any thoughts on how you would approach this problem?  Ideally, we could
> switching the journal location after it is started.  2nd best would be to
> delay the journal starting until the storage medium was available.

The journal already supports moving the log data from /run to /var after
/var ha sbeen mounted. Maybe you can piggyback on that, and just make
sure that /var/log/journal resides on the right kind of storage? Then
you should get all this for free?

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to