summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/initramfs/scripts/zfs.in8
1 files changed, 3 insertions, 5 deletions
diff --git a/contrib/initramfs/scripts/zfs.in b/contrib/initramfs/scripts/zfs.in
index 3d3aa537d..52098cc14 100644
--- a/contrib/initramfs/scripts/zfs.in
+++ b/contrib/initramfs/scripts/zfs.in
@@ -329,11 +329,9 @@ mount_fs()
"$mountpoint" = "-" ]
then
if [ "$fs" != "${ZFS_BOOTFS}" ]; then
- # We don't have a proper mountpoint, this
- # isn't the root fs. So extract the root fs
- # value from the filesystem, and we should
- # (hopefully!) have a mountpoint we can use.
- mountpoint="${fs##$ZFS_BOOTFS}"
+ # We don't have a proper mountpoint and this
+ # isn't the root fs.
+ return 0
else
# Last hail-mary: Hope 'rootmnt' is set!
mountpoint=""