From c2ed2ec128a5f085cdf741674aa405de535578ca Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Mon, 3 Feb 2025 11:00:49 +0100 Subject: [PATCH] init.d/swap: start after localmount 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. --- init.d/swap.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/init.d/swap.in b/init.d/swap.in index 9bff39985..71e07d05d 100644 --- a/init.d/swap.in +++ b/init.d/swap.in @@ -11,8 +11,7 @@ depend() { - after clock root - before localmount + after clock root localmount keyword -docker -podman -jail -lxc -openvz -prefix -systemd-nspawn -vserver }