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 GitHub
parent 7b42f09049
commit 0f66201dbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -15,4 +15,4 @@ esac
. /usr/share/initramfs-tools/hook-functions . /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