I put my swapfile on an encrypted disk:
/dev/mapper/encrypted-disk /data auto defaults,x-systemd.automount,x-systemd.mount-timeout=1min,x-systemd.device-timeout=1min 0 2
/data/swapfile swap swap sw 0 0
But from time to time, the swapfile did not get mounted after boot. I have to manually do swapon-a
which is very annoying. /data is correctly mounted and there is no error in journalctl -b -0
either. Does anyone know what do I miss here?