How to change swap-file-creator settings?

Hello everybody,
Since my last update of Kicksecure (Morphing on Debian), I have a boot error:
Failed to start swap-file-creator.service.

I’ve looked in the documentation and it seems to me that this is due to the fact that I don’t have enough free space on the part of my hard disk where the programs are installed. I think this swap would like to be created on JNDebian-vg-root.

1K block file system Used Available Uti% Mounted on
udev 3862196 0 3862196 0% /dev
tmpfs 778292 1764 776528 1% /run
/dev/mapper/JNDebian–vg-root 28658596 21430388 5747096 79% /
tmpfs 3891440 226012 3665428 6% /dev/shm
tmpfs 5120 8 5112 1% /run/lock
/dev/nvme0n1p1 465124 70189 370001 16% /boot
/dev/mapper/JNDebian–vg-home 214662440 166803556 36881812 82% /home
none 10240 4 10236 1% /run/msgcollector
tmpfs 778288 84 778204 1% /run/user/1000

Is there a solution either to change the default swap size or to create it on JNDebian-vg-home, which has more free disk space?
Thanks for your help!
Jeronath

Documented just now:
swap-file-creator, Configuration

  • manual size configuration
  • swap file storage path

/dev/mapper/JNDebian–vg-home most likely isn’t a writeable folder.

Probably a bad idea to try SWAPFILE=/dev/mapper/JNDebian–vg-home/swapfile as setting.

SWAPFILE=/home/swapfile might work.

I am not sure complex storage path configurations will be possible. The device needs to be available before swap-file-creator runs. Or swap-file-creator systemd unit file needs to be adjusted. Best to look at the source code and see if it can be modified for your use case.

Should that seem to complicated I recommend to not use swap-file-creator, disable swap-file-creator (documented on the same wiki page). swap-file-creator isn’t designed to handle very complex swap setups. In that case it’s better to set up swap manually.