aboutsummaryrefslogtreecommitdiffstats
path: root/initramfs-init.in
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs-init.in')
-rwxr-xr-xinitramfs-init.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/initramfs-init.in b/initramfs-init.in
index 64b1b5b..24a25c9 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -363,6 +363,11 @@ if [ -n "$KOPT_nbd" ]; then
setup_nbd || echo "Failed to setup nbd device."
fi
+if [ "$KOPT_rootfstype" = "zfs" ]; then
+ # zpool reports /dev/zfs missing if it can't read /etc/mtab
+ ln -s /proc/mounts /etc/mtab
+fi
+
# check if root=... was set
if [ -n "$KOPT_root" ]; then
if [ "$SINGLEMODE" = "yes" ]; then