mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-24 18:39:34 +03:00
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 <antonio.e.russo@gmail.com> Reviewed-by: Richard Laager <rlaager@wiktel.com> Signed-off-by: InsanePrawn <insane.prawny@gmail.com> Closes #9611
This commit is contained in:
parent
922244cc23
commit
19ea83c594
@ -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;"\
|
||||
|
Loading…
Reference in New Issue
Block a user