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 <behlendorf1@llnl.gov>
Signed-off-by: Pavel Zakharov <pavel.zakharov@delphix.com>
Closes #11162
This commit is contained in:
Pavel Zakharov 2020-11-10 14:12:07 -05:00 committed by Brian Behlendorf
parent cb4d3fb737
commit a4efa59a94

View File

@ -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