aboutsummaryrefslogtreecommitdiffstats
path: root/etc/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'etc/init.d')
-rw-r--r--etc/init.d/zfs-functions.in2
-rwxr-xr-xetc/init.d/zfs-mount.in4
2 files changed, 3 insertions, 3 deletions
diff --git a/etc/init.d/zfs-functions.in b/etc/init.d/zfs-functions.in
index acfdf9926..97f2ea039 100644
--- a/etc/init.d/zfs-functions.in
+++ b/etc/init.d/zfs-functions.in
@@ -368,7 +368,7 @@ read_mtab()
# Set the variable.
eval export MTAB_$mntpnt=\"$fs\"
fi
- done < /proc/mounts
+ done < /proc/self/mounts
}
in_mtab()
diff --git a/etc/init.d/zfs-mount.in b/etc/init.d/zfs-mount.in
index 34db057c8..2722a31e4 100755
--- a/etc/init.d/zfs-mount.in
+++ b/etc/init.d/zfs-mount.in
@@ -39,7 +39,7 @@ chkroot() {
if [ "$2" = "/" ]; then
return 0
fi
- done < /etc/mtab
+ done < /proc/self/mounts
return 1
}
@@ -178,7 +178,7 @@ do_start()
check_module_loaded "zfs" || exit 0
- # Ensure / exists in /etc/mtab, if not update mtab accordingly.
+ # Ensure / exists in /proc/self/mounts.
# This should be handled by rc.sysinit but lets be paranoid.
if ! chkroot
then