Skip to content

Commit

Permalink
remove swapfiles service
Browse files Browse the repository at this point in the history
The swapfiles service was basically a copy of the swap service, so this
commit consolidates the functionality into the swap service.

X-Funtoo-Bug-URL: https://bugs.funtoo.org/browse/FL-2523
X-Gentoo-Bug: 568162
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=568162
  • Loading branch information
williamh committed Sep 5, 2016
1 parent 8c14d0c commit d06db93
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 52 deletions.
7 changes: 7 additions & 0 deletions NEWS.md
Expand Up @@ -3,6 +3,13 @@
This file will contain a list of notable changes for each release. Note
the information in this file is in reverse order.

## OpenRC-0.22

The swapfiles service, which was basically a copy of the swap service,
has been removed. If you are only using swap partitions, this change
will not affect you. If you are using swap files, please adjust the
dependencies of the swap service as shown in /etc/conf.d/swap.

## OpenRC-0.21

This version adds a daemon supervisor which can start daemons and
Expand Down
2 changes: 1 addition & 1 deletion conf.d/Makefile
@@ -1,7 +1,7 @@
include ../mk/net.mk

DIR= ${CONFDIR}
CONF= bootmisc fsck hostname localmount netmount urandom tmpfiles \
CONF= bootmisc fsck hostname localmount netmount swap urandom tmpfiles \
${CONF-${OS}}

ifeq (${MKNET},yes)
Expand Down
13 changes: 13 additions & 0 deletions conf.d/swap
@@ -0,0 +1,13 @@
# If you are only using local swap partitions, you should not change
# this file. Otherwise, you need to uncomment the below rc_before line
# followed by the appropriate rc_need line.
#rc_before="!localmount"
#
# If you are using swap files stored on local file systems, uncomment
# this line.
#rc_need="localmount"
#
# If you are using swap files stored on network file systems or swap
# partitions stored on network block devices such as iSCSI, uncomment
# this line.
#rc_need="netmount"
1 change: 0 additions & 1 deletion init.d/.gitignore
Expand Up @@ -12,7 +12,6 @@ network
root
savecache
swap
swapfiles
sysctl
urandom
devfs
Expand Down
5 changes: 2 additions & 3 deletions init.d/Makefile
Expand Up @@ -2,9 +2,8 @@ include ../mk/net.mk

DIR= ${INITDIR}
SRCS= bootmisc.in fsck.in hostname.in local.in localmount.in loopback.in \
netmount.in osclock.in root.in savecache.in swap.in swapfiles.in \
tmpfiles.setup.in swclock.in sysctl.in runsvdir.in urandom.in \
s6-svscan.in ${SRCS-${OS}}
netmount.in osclock.in root.in savecache.in swap.in tmpfiles.setup.in \
swclock.in sysctl.in runsvdir.in urandom.in s6-svscan.in ${SRCS-${OS}}
BIN= ${OBJS}

# Are we installing our network scripts?
Expand Down
46 changes: 0 additions & 46 deletions init.d/swapfiles.in

This file was deleted.

2 changes: 1 addition & 1 deletion runlevels/Makefile
@@ -1,7 +1,7 @@
include ../mk/net.mk

BOOT= bootmisc fsck hostname localmount loopback \
root swap swapfiles sysctl urandom ${BOOT-${OS}}
root swap sysctl urandom ${BOOT-${OS}}
DEFAULT= local netmount
NONETWORK= local
SHUTDOWN= savecache ${SHUTDOWN-${OS}}
Expand Down

0 comments on commit d06db93

Please sign in to comment.