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

Bug 423739

Summary: sys-apps/openrc-0.10.3 fails to use /run properly in linux-vserver
Product: Gentoo Hosted Projects Reporter: Patrick Lauer <patrick>
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: 417391    
Attachments: run-vserver.patch
run-vserver.patch

Description Patrick Lauer gentoo-dev 2012-06-27 06:56:28 UTC
OpenRC 0.10.3 is starting up Gentoo Linux (x86_64) [VSERVER]

 * /proc is already mounted
 * Mounting /run ...
mount: permission denied
 * Unable to mount tmpfs on /run.
 * Can't continue.
 * Creating user login records ...


mount can't work in a vserver, so /run should just be created if absent and *not* mounted randomly.

It should possibly be cleaned out on startup then as you cannot assume it to be tmpfs.
Comment 1 William Hubbs gentoo-dev 2012-06-30 06:35:44 UTC
Created attachment 316735 [details, diff]
run-vserver.patch

Please test this patch and let me know if this fixes the issue.

Thanks,

William
Comment 2 William Hubbs gentoo-dev 2012-06-30 14:33:18 UTC
Created attachment 316775 [details, diff]
run-vserver.patch

This fixes an issue I found with the first patch; please test with this
version.

Thanks,

William
Comment 3 Patrick Lauer gentoo-dev 2012-07-02 02:29:39 UTC
   OpenRC 0.10.3 is starting up Gentoo Linux (x86_64) [VSERVER]

 * /proc is already mounted
 * /run/openrc: creating directory
 * /run/lock: creating directory
 * /run/lock: correcting owner
 * Creating user login records ...  

LGTM :)
The second patch seems to properly fix this issue.
Comment 4 William Hubbs gentoo-dev 2012-07-03 01:31:14 UTC
This is fixed in commit a5b4fab.

Thanks for the report.