~mvo/apt-btrfs-snapshot/trunk

« back to all changes in this revision

Viewing changes to apt_btrfs_snapshot.py

  • Committer: Michael Vogt
  • Date: 2011-10-11 07:11:28 UTC
  • Revision ID: michael.vogt@ubuntu.com-20111011071128-gn4qrpgf80i3lmy8
* apt_btrfs_snapshot.py:
  - test for /sbin/btrfs in snapshot_supported() as well (LP: #800908)

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
        """ verify that the system supports apt btrfs snapshots
90
90
            by checking if the right fs layout is used etc
91
91
        """
 
92
        # check for the helper binary
 
93
        if not os.path.exists("/sbin/btrfs"):
 
94
            return False
 
95
        # check the fstab
92
96
        for entry in self.fstab:
93
97
            if (entry.mountpoint == "/" and
94
98
                entry.fstype == "btrfs" and