Hello. I finally managed to work and locate the files and the code to change to make the swapfile work on Btrfs, I have tested it on several installations for a few months and the swapfile is created both if you choose ext4 or btrfs. I'm not a developer, so I don't know if the changes are correct and in style. Hope it helps.
** Attachment added: "modification of the file relating to the creation of subvolumes (partman/mount.d)" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1818811/+attachment/5385973/+files/70btrfs -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1818811 Title: The swapfile on the Btrfs file system is not activated To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1818811/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs