From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Sun, 17 Jun 2018 17:54:47 +0200 Subject: [Buildroot] [PATCH 2/4] sysvinit: add an inittab entry to activate swap In-Reply-To: <20180611060016.20755-3-casantos@datacom.com.br> (Carlos Santos's message of "Mon, 11 Jun 2018 03:00:14 -0300") References: <20180611060016.20755-1-casantos@datacom.com.br> <20180611060016.20755-3-casantos@datacom.com.br> Message-ID: <87h8m1o1bs.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Carlos" == Carlos Santos writes: > There is a call to swapoff in the shutdown sequence, so call "swapon -a" > on startup. As stated in the swapon man page, > All devices marked as "swap" in /etc/fstab are made available, except > for those with the "noauto" option. Devices that are already being > used as swap are silently skipped. > So even if the system has some init script to start/stop swap (e.g. from > a rootfs ovelay) calling swapon/swapoff would be harmless. > Signed-off-by: Carlos Santos Committed to 2018.02.x, thanks. -- Bye, Peter Korsgaard