From 0f66201dbcead2d1ff8ab075587ee2811c19822b 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 c8ae863639..d451726545 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