Skip to content

Commit

Permalink
Only run pre-mount hook zfs-load-key on systemd
Browse files Browse the repository at this point in the history
Reviewed-by: Kash Pande <kash@tripleback.net>
Reviewed-by: bunder2015 <omfgbunder@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matthew Thode <mthode@mthode.org>
Closes openzfs#7136
Closes openzfs#7140
  • Loading branch information
prometheanfire authored and Nasf-Fan committed Feb 13, 2018
1 parent cc60c86 commit 1f5e3fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/dracut/90zfs/zfs-load-key.sh.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# only run this on systemd systems, we handle the decrypt in mount-zfs.sh in the mount hook otherwise
[[ -e /bin/systemctl ]] || return 0

# This script only gets executed on systemd systems, see mount-zfs.sh for non-systemd systems

# import the libs now that we know the pool imported
Expand Down

0 comments on commit 1f5e3fd

Please sign in to comment.