For the one interested into a workaround:

Activate sources channels:
$ sudo perl -p -i.bak -e 's/# deb-src/deb-src/g' /etc/apt/sources.list

Install build dependencies:
$ sudo apt-get update
$ sudo apt-get install fakeroot
$ sudo apt-get build-dep apt-btrfs-snapshot

Download sources from Bionic 18.04:
$ wget 
http://archive.ubuntu.com/ubuntu/pool/universe/a/apt-btrfs-snapshot/apt-btrfs-snapshot_3.5.1.tar.xz
$ wget 
http://archive.ubuntu.com/ubuntu/pool/universe/a/apt-btrfs-snapshot/apt-btrfs-snapshot_3.5.1.dsc

Decompress source package:
$ dpkg-source -x apt-btrfs-snapshot_3.5.1.dsc

Build:
$ cd apt-btrfs-snapshot-3.5.1/
$ dpkg-buildpackage -rfakeroot -uc -b
$ cd -

Install:
$ sudo dpkg -i apt-btrfs-snapshot_3.5.1_all.deb

Test:
$ sudo apt-btrfs-snapshot supported
Supported

Upgrade:
$ sudo apt-get update
$ sudo apt-get dist-upgrade -f
...
Create a snapshot of '/tmp/apt-btrfs-snapshot-mp-ycsujp_2/@' in 
'/tmp/apt-btrfs-snapshot-mp-ycsujp_2/@apt-snapshot-2017-12-14_19:21:13'

Confirm:
$ sudo btrfs subvolume list -p -a -t -u /
ID      gen     parent  top level       uuid    path    
--      ---     ------  ---------       ----    ----    
257     4429    5       5               d1b1ef5b-3e09-064b-bef1-faeeb82e3d10    
<FS_TREE>/@
258     4393    5       5               84bb48d7-f40a-3c40-bfd0-f93628a729f5    
<FS_TREE>/@home
266     4409    5       5               17ad1ca3-e111-d742-a3b0-58b5a61c6079    
<FS_TREE>/@apt-snapshot-2017-12-14_19:21:13

Enjoy!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1454306

Title:
  apt-btrfs-snapshot supported reports "Sorry, your system lacks support
  for the snapshot feature" since update of btrfs-tools to 4.0-2  in
  debian/testing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/1454306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to