[Buildroot] [PATCH 2/2] fs: clean the volatile /run and /tmp directories

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Jun 7 08:47:08 UTC 2020

On Sun, 7 Jun 2020 00:57:23 +0200
Norbert Lange <nolange79 at gmail.com> wrote:

> > However, I'm not sure if removing all what they contain is the right
> > approach. Shouldn't we avoid creating things in /tmp and /run in the
> > first place ?  
> Yeah we should avoid creating stuff there, but it's sometimes hard to do.
> One example is defining a user with home dir in /run, mkusers will
> then create a dir there
> (pretty late to clear it up otherwise)

But our skeleton has a fstab that always mounts a tmpfs filesystem on
/run, so how can it make sense for mkusers to create a home directory
in /run ?

Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering

More information about the buildroot mailing list