Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 454338

Summary: openrc-0.11.8: Needless clean of tmpfs /run + /tmp (on LXC)
Product: Gentoo Hosted Projects Reporter: Walter <walter>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 439098    

Description Walter 2013-01-27 21:31:07 UTC
Under LXC one might typically mount /run and /tmp as tmpfs from the host environment.

OpenRC should probably avoid the two processes in bootmisc titled "Cleaning /var/run..." and "Wiping /tmp directory..." if they are tmpfs-mounted.

Reproducible: Always

Steps to Reproduce:
1. Boot within LXC with /run and /tmp tmpfs-mounted

Actual Results:  
Needless processes execute.

Expected Results:  
No such processes execute.

If you take the view that it's safer to just wipe these things and the processes  should run anyway, in the case that either location is already empty then at least OpenRC could then avoid executing these processes.
Comment 1 William Hubbs gentoo-dev 2013-02-16 08:14:04 UTC
A fix for this has been implemented in commit 1831e43 and will be in
openrc-0.12.