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

Bug 478336

Summary: sys-apps/openrc: signals an error if device nodes already exist
Product: Gentoo Hosted Projects Reporter: Dirk Sondermann <ds-gentoo>
Component: OpenRCAssignee: OpenRC Team <openrc>
Severity: normal CC: ds-gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 439098    
Attachments: patch against openrc-0.11.8
patch against git

Description Dirk Sondermann 2013-07-27 09:53:34 UTC
Created attachment 354296 [details, diff]
patch against openrc-0.11.8

When is invoked by /etc/init.d/tmpfiles.setup and tries to create the device nodes requested by kmod (see bug 477856), it signals an error if some nodes already exist.

The reason for this error is that the functions _c and _d in return the non-zero exit status of [ ! -e "$path" ] if the given path exists.

This problem may be avoided by replacing
   [ ! -e "$path" ] && ...
   if [ ! -e "$path" ]; then ...; fi
Comment 1 Dirk Sondermann 2013-07-27 09:57:19 UTC
Created attachment 354298 [details, diff]
patch against git
Comment 2 William Hubbs gentoo-dev 2013-07-27 16:17:49 UTC
This patch has been added in commit e90dcf3 and will be part of
OpenRc-0.12. Thanks for the report and patch.