Your swapfile setup seems to be very similar to what I do on most systems. I installed void in a similar fashion as what you described (I’ve been meaning to try out void anyway), and swapfile is working for me.
By the system crashes, do you mean while booting, or when you try to activate swap manually, or something else? Could you provide your bootloader configuration and /etc/fstab ? I believe the swapfile line should follow the @swap subvolume mount line.
Here is mine, for example:
UUID=Y0LOY0LO-Y0LO-Y0LO-Y0LO-Y0LOY0LOY0LO /swap btrfs rw,discard=async,space_cache=v2,subvol=/@swap 0 0
/swap/swapfile1 none swap defaults 0 0
Also, curious why use a @tmp subvolume instead of tmpfs? Are you putting large files there?


deleted by creator