Generating swap file on btrfs filesystem
When getting an invalid argument error when doing swapon /swapfile (for instance) it might be due to the underlying filesystem being btrfs. In this case you need to do the following steps: Since version 6.1 of the btrfs tooling it’s possible to create the swapfile in a single command (except the activation): All commands need…