def supported(fstab="/etc/fstab"): """ verify that the system supports apt btrfs snapshots by checking if the right fs layout is used etc """ # check for the helper binary if not os.path.exists("/sbin/btrfs"): return False # check the fstab fstab = Fstab(fstab) entry = fstab.get_supported_btrfs_root_fstab_entry() return entry is not None