From 9717fe052b6b7a43e497974817e392dffd8b939b Mon Sep 17 00:00:00 2001 From: JKDingwall Date: Mon, 4 Dec 2017 19:53:57 +0000 Subject: [PATCH] Add /usr/bin/env to COPY_EXEC_LIST initramfs hook 5dc1ff29 changed the user space program to mount a zfs snapshot from /bin/sh to /usr/bin/env. If the executable is not present in the initramfs then snapshots cannot be automounted. Reviewed-by: George Melikov Reviewed-by: Brian Behlendorf Reviewed-by: Richard Laager Reviewed-by: Giuseppe Di Natale Signed-off-by: James Dingwall Closes #5360 Closes #6913 --- contrib/initramfs/hooks/zfs.in | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/initramfs/hooks/zfs.in b/contrib/initramfs/hooks/zfs.in index ef3ccbc18c..b34cad1e85 100755 --- a/contrib/initramfs/hooks/zfs.in +++ b/contrib/initramfs/hooks/zfs.in @@ -20,6 +20,7 @@ COPY_FILE_LIST="$COPY_FILE_LIST @udevruledir@/69-vdev.rules" # These prerequisites are provided by the base system. COPY_EXEC_LIST="$COPY_EXEC_LIST /usr/bin/dirname /bin/hostname /sbin/blkid" +COPY_EXEC_LIST="$COPY_EXEC_LIST /usr/bin/env" # Explicitly specify all kernel modules because automatic dependency resolution # is unreliable on many systems.