I tried to make it work, doing a Ubuntu ISO chroot (I used Cubic
software), I saw the part where the Btrfs subvolts are created and tried
to modify them, obviously not having the skills in an advanced way, I'm
not managed to make it work.

I ran it manually after installation:
mount -t btrfs -o options /dev/sda1 /mnt
btrfs subvol create /mnt/@swapfile
chattr +C /mnt/@swapfile

then I created the swapfile inside the subvol "@swapfile":
fallocate -l 512M /mnt/@swapfile/swapfile
chmod 600 /mnt/@swapfile/swapfile
chattr +C /mnt/@swapfile/swapfile

Then I edit fstab:
UUID=b383c3a8-39dd-4edd-98e1-0217a87d266a /swap           btrfs   
defaults,subvol=@swap 0       0
/swap/swapfile    none    swap    sw    0   0


Are these the files to make these changes?
/usr/lib/partman/mount.d/70btrfs
/usr/lib/partman/mount.d/70btrfs
/usr/lib/partman/finish.d

-- 
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to