Skip to content

Commit

Permalink
Add /usr/bin/env to COPY_EXEC_LIST initramfs hook
Browse files Browse the repository at this point in the history
5dc1ff2 changed the user space program to mount a zfs snapshot
from /bin/sh to /usr/bin/env.  If the executable is not present
in the initramfs then snapshots cannot be automounted.

Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Richard Laager <[email protected]>
Reviewed-by: Giuseppe Di Natale <[email protected]>
Signed-off-by: James Dingwall <[email protected]>
Closes #5360
Closes #6913
Conflicts:
	contrib/initramfs/hooks/zfs
  • Loading branch information
JKDingwall authored and tonyhutter committed Dec 5, 2017
1 parent ddd20db commit d45702b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/initramfs/hooks/zfs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ COPY_FILE_LIST="$COPY_FILE_LIST /etc/zfs/zfs-functions /etc/zfs/vdev_id.conf"
COPY_FILE_LIST="$COPY_FILE_LIST /lib/udev/rules.d/69-vdev.rules"

# These prerequisites are provided by the base system.
COPY_EXEC_LIST="$COPY_EXEC_LIST /bin/hostname /sbin/blkid"
COPY_EXEC_LIST="$COPY_EXEC_LIST /usr/bin/dirname /bin/hostname /sbin/blkid"
COPY_EXEC_LIST="$COPY_EXEC_LIST /usr/bin/env"

# Explicitly specify all kernel modules because automatic dependency resolution
# is unreliable on many systems.
Expand Down

0 comments on commit d45702b

Please sign in to comment.