apt-btrfs-snapshot traceback when fuse FS in fstab

Bug #1386295 reported by Robert C Jennings
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-btrfs-snapshot (Ubuntu)
New
Undecided
Unassigned

Bug Description

Given an fstab with a legal fuse entry like:
 encfs-reverse#/home/rcj /home/rcj.enc fuse defaults 0 0

(From http://bazaar.launchpad.net/~vgough/encfs/trunk/view/head:/encfs/encfs.pod#L159)

We will get a traceback when parsing the fstab.

$ sudo apt-btrfs-snapshot supported
Traceback (most recent call last):
  File "/usr/bin/apt-btrfs-snapshot", line 92, in <module>
    apt_btrfs = AptBtrfsSnapshot()
  File "/usr/lib/python3/dist-packages/apt_btrfs_snapshot.py", line 113, in __init__
    self.fstab = Fstab(fstab)
  File "/usr/lib/python3/dist-packages/apt_btrfs_snapshot.py", line 76, in __init__
    entry = FstabEntry.from_line(line)
  File "/usr/lib/python3/dist-packages/apt_btrfs_snapshot.py", line 49, in from_line
    return FstabEntry(*args[0:6])
TypeError: __init__() missing 3 required positional arguments: 'mountpoint', 'fstype', and 'options'

Workaround is to change the fstab entry from:
 encfs-reverse#/home/rcj /home/rcj.enc fuse defaults 0 0
to:
 /home/rcj /home/rcj.enc fuse.encfs-reverse defaults 0 0

I have opened this bug to request an enhancement to fstab parsing and to document the workaround so that others can find it in the interim.

Additional info:
$ lsb_release -rd
Description: Ubuntu 14.04.1 LTS
Release: 14.04

$ apt-cache policy apt-btrfs-snapshot
apt-btrfs-snapshot:
  Installed: 0.3.4.2
  Candidate: 0.3.4.2

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.