Skip to content

Conversation

PureTryOut
Copy link

A swapfile can be placed on any partition, not just on root. However because swap was started before localmount which is supposed to mount any additional partitions swap would fail whenever the swapfile was located on one of these additional partitions.
Making sure localmount ran before means the swapfile can be found and activated successfully in all cases.

A swapfile can be placed on any partition, not just on root.
However because swap was started before localmount which is supposed to mount
any additional partitions swap would fail whenever the swapfile was located
on one of these additional partitions.
Making sure localmount ran before means the swapfile can be found and activated
successfully in all cases.
@N-R-K
Copy link
Contributor

N-R-K commented Mar 14, 2025

Related: 79d6f10 which added swapfiles.

Later swapfiles was removed and the functionality merged into swap: d06db93

And so the current swap service is fine. You just need to configure it if you want to create a swap after localmount:

openrc/conf.d/swap

Lines 6 to 8 in 5c2b288

# If you are using swap files stored on local file systems, uncomment
# this line.
#rc_need="localmount"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants