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

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Jun 6 20:42:27 UTC 2020


Hello,

On Sat,  6 Jun 2020 00:48:57 +0200
Norbert Lange <nolange79 at gmail.com> wrote:

> Scripts in the fakeroot environment could call
> tools preparing the early environment, leaving
> traces in /run or /tmp.
> 
> mkusers might create home directories in /run for
> example.
> 
> Signed-off-by: Norbert Lange <nolange79 at gmail.com>

Looping Yann on this. I agree that we definitely want /tmp and /run to
be empty, as we are anyway going to mount a tmpfs over them, so
whatever they contains is not visible on the target system, but takes
up some space on the filesystem.

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 ?

Yann, any feedback on this ?

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list