Skip to content

Commit

Permalink
initramfs: zfsunlock hook breaks /usr/bin
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pzakha authored and behlendorf committed Nov 11, 2020
1 parent cb4d3fb commit a4efa59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/initramfs/hooks/zfsunlock.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a4efa59

Please sign in to comment.