ecryptfs-setup-private fails with ZFS
Bug #1574174 reported by
Richard Laager
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
Fix Committed
|
Undecided
|
Unassigned | ||
ecryptfs-utils (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The obvious approach for using ZFS and ecryptfs together involves creating a dataset like this:
zfs create -o mountpoint=
As a result, /proc/mounts looks like this:
rpool/home/USER /home/.
ecryptfs-
grep -qs "$MOUNTPOINT " /proc/mounts && error "[$MOUNTPOINT]" "$(gettext 'is already mounted')"
This matches the list in /proc/mounts because of the device column ("rpool/
Adding a space before $MOUNTPOINT in the grep (just like the space after it) solves this problem and shouldn't impact the intended purpose of the check.
Related branches
To post a comment you must log in.
I proposed the fix for upstream as a BZR branch: /code.launchpad .net/~rlaager/ ecryptfs/ fix-lp- 1574174/ +merge/ 292844
https:/