diff options
author | InsanePrawn <[email protected]> | 2019-11-23 16:16:06 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-11-27 10:54:24 -0800 |
commit | 70d2dd922b3b8802e9549d8ef3276dce7d9f322b (patch) | |
tree | 620b8fb1743e004eac7e9edbd0e9c0e90903d64d /etc/systemd | |
parent | d8ce455c1eb7defb60664f6c6e234e0c4ef62fde (diff) |
Fix non-absolute path in systemd mount generator
Systemd will ignore units that try to execute programs from non-absolute
paths. Use hardcoded /bin/sh instead.
Reviewed-by: Antonio Russo <[email protected]>
Reviewed-by: Richard Laager <[email protected]>
Signed-off-by: InsanePrawn <[email protected]>
Closes #9611
Diffstat (limited to 'etc/systemd')
-rwxr-xr-x | etc/systemd/system-generators/zfs-mount-generator.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/systemd/system-generators/zfs-mount-generator.in b/etc/systemd/system-generators/zfs-mount-generator.in index 4f9443a91..2eba74716 100755 --- a/etc/systemd/system-generators/zfs-mount-generator.in +++ b/etc/systemd/system-generators/zfs-mount-generator.in @@ -181,7 +181,7 @@ process_line() { pathdep="RequiresMountsFor='${p_keyloc#file://}'" keyloadcmd="@sbindir@/zfs load-key '${dataset}'" elif [ "${p_keyloc}" = "prompt" ] ; then - keyloadcmd="sh -c 'set -eu;"\ + keyloadcmd="/bin/sh -c 'set -eu;"\ "keystatus=\"\$\$(@sbindir@/zfs get -H -o value keystatus \"${dataset}\")\";"\ "[ \"\$\$keystatus\" = \"unavailable\" ] || exit 0;"\ "count=0;"\ |