]> git.proxmox.com Git - zfsonlinux.git/commitdiff
zfs-initrd: create /etc/mtab
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 13 Jan 2015 09:57:30 +0000 (10:57 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 13 Jan 2015 09:59:04 +0000 (10:59 +0100)
zfs-debian-pve/tree/zfs-initramfs/usr/share/initramfs-tools/hooks/zfs

index 16d644c7ffe20e76bdf08b69b158a967b5b8e14d..13a65b44c493f782ebb32325f8658803e78f3112 100755 (executable)
@@ -45,6 +45,9 @@ fi
 
 mkdir -p "$DESTDIR/etc/"
 
+# zpool requires /etc/mtab
+ln -sf "/proc/mounts" "$DESTDIR/etc/mtab"
+
 # ZDB uses pthreads for some functions, but the library dependency is not
 # automatically detected. The `find` utility and extended `cp` options are
 # used here because libgcc_s.so could be in a subdirectory of /lib for