ereswap is hardcoded which is not good. flopswap uses blkid to locate the swaps at boot time this is the correct way to locate partitions, you should only use swap partitions specified in /etc/fstab. Using hardcoded paths is bad as stock and upstream kernel issues locations randomly.