[Buildroot] Strange behavior with shell redirection

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Dec 18 18:03:54 UTC 2009


Hello,

Le Fri, 18 Dec 2009 13:10:41 +0100,
Cyril HAENEL <chaenel at free.fr> a écrit :

> ./potentiostatApplication >> /var/log/potentiostat

In the default Buildroot target skeleton, /var/log is a symbolic link
to /tmp, and /tmp is mounted as a tmpfs (the contents of the filesystem
are stored into memory).

So with the default Buildroot configuration, the contents of /var/log
(and many other /var directories) are lost when you reboot.

Cheers,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list