Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 430378 - /proc/swapfiles assumed in swapfiles.in
Summary: /proc/swapfiles assumed in swapfiles.in
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 417391
  Show dependency tree
 
Reported: 2012-08-08 03:10 UTC by Walter
Modified: 2012-08-17 18:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.