From a4efa59a9479f48311b92d5542f711c2a5626fa5 Mon Sep 17 00:00:00 2001 From: Pavel Zakharov Date: Tue, 10 Nov 2020 14:12:07 -0500 Subject: [PATCH] initramfs: zfsunlock hook breaks /usr/bin The copy_exec() function expects that the full path of the target file is passed rather than just the directory, and will take care of creating the underlying directories if they don't exist. Reviewed-by: Brian Behlendorf Signed-off-by: Pavel Zakharov Closes #11162 --- contrib/initramfs/hooks/zfsunlock.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/initramfs/hooks/zfsunlock.in b/contrib/initramfs/hooks/zfsunlock.in index c8ae86363..d45172654 100644 --- a/contrib/initramfs/hooks/zfsunlock.in +++ b/contrib/initramfs/hooks/zfsunlock.in @@ -15,4 +15,4 @@ esac . /usr/share/initramfs-tools/hook-functions -copy_exec /usr/share/initramfs-tools/zfsunlock /usr/bin +copy_exec /usr/share/initramfs-tools/zfsunlock /usr/bin/zfsunlock -- 2.39.5