diff --git a/etc/init.d/zfs.fedora b/etc/init.d/zfs.fedora index 8e48efb7b7..69df621e30 100644 --- a/etc/init.d/zfs.fedora +++ b/etc/init.d/zfs.fedora @@ -155,15 +155,6 @@ start() action $"Mounting ZFS filesystems not yet mounted: " $ZFS mount -a || return 152 - # hack to read mounted file systems because otherwise - # zfs returns EPERM when a non-root user reads a mounted filesystem before root did - savepwd="$PWD" - mount | grep " type zfs " | sed 's/.*on //' | sed 's/ type zfs.*$//' | while read line ; do - cd "$line" > /dev/null 2>&1 - ls > /dev/null - done - cd "$savepwd" - read_mtab "^/dev/zd" read_fstab "^/dev/zd" diff --git a/etc/init.d/zfs.gentoo b/etc/init.d/zfs.gentoo index 1d8ece2c8c..c9c5d8502c 100644 --- a/etc/init.d/zfs.gentoo +++ b/etc/init.d/zfs.gentoo @@ -75,17 +75,6 @@ start() { return $rv fi - # hack to read mounted file systems because otherwise - # zfs returns EPERM when a non-root user reads a mounted filesystem before root did - savepwd="$PWD" - mount | grep " type zfs " | sed 's/.*on //' | sed 's/ type zfs.*$//' | \ - while read line - do - cd "$line" &> /dev/null - ls &> /dev/null - done - cd "$savepwd" - eend 0 return 0 }