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

Bug 430378

Summary: /proc/swapfiles assumed in swapfiles.in
Product: Gentoo Hosted Projects Reporter: Walter <walter>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 417391    

Description Walter 2012-08-08 03:10:47 UTC
The file init.d/swapfiles.in contains code to read from /proc/swapfiles.

In the perfectly legitimate use case that the kernel does not have swapfile support (and/or proc may not be mounted, etc.) this causes ugly errors.

Better to add:
 if [ -e /proc/swapfiles ]; then
   ... existing code ...
 fi
Comment 1 William Hubbs gentoo-dev 2012-08-17 18:37:07 UTC
This is fixed in commit 07e8486.
Thanks for the report.