Skip to content

Commit

Permalink
DLPX-72754 [Backport of DLPX-72753 to 6.0.6.0] initramfs: zfsunlock h…
Browse files Browse the repository at this point in the history
…ook breaks /usr/bin (openzfs#231)

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 openzfs#11162
  • Loading branch information
pzakha committed Nov 13, 2020
1 parent 46a6cac commit a345260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/initramfs/hooks/zfsunlock.in
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 a345260

Please sign in to comment.