diff options
author | Pavel Zakharov <[email protected]> | 2020-11-10 14:12:07 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-11-11 11:07:40 -0800 |
commit | a4efa59a9479f48311b92d5542f711c2a5626fa5 (patch) | |
tree | a6eff52f51f99205ed79e90d9929fda2727b1fb3 | |
parent | cb4d3fb7373e5b09e182dbac6ab059a917c1fda4 (diff) |
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 <[email protected]>
Signed-off-by: Pavel Zakharov <[email protected]>
Closes #11162
-rw-r--r-- | contrib/initramfs/hooks/zfsunlock.in | 2 |
1 files changed, 1 insertions, 1 deletions
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 |